protected EntityStorageBase::setStaticCache(array $entities)
Stores entities in the static entity cache.
\Drupal\Core\Entity\EntityInterface[] $entities: Entities to store in the cache.
protected function setStaticCache(array $entities) { if ($this->entityType->isStaticallyCacheable()) { $this->entities += $entities; } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityStorageBase.php/function/EntityStorageBase::setStaticCache/8.1.x