protected EntityStorageBase::getFromStaticCache(array $ids)
Gets entities from the static cache.
array $ids: If not empty, return entities that match these IDs.
\Drupal\Core\Entity\EntityInterface[] Array of entities from the entity cache.
protected function getFromStaticCache(array $ids) { $entities = array(); // Load any available entities from the internal cache. if ($this->entityType->isStaticallyCacheable() && !empty($this->entities)) { $entities += array_intersect_key($this->entities, array_flip($ids)); } return $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::getFromStaticCache/8.1.x