protected function EntityStorageBase::setStaticCache in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/EntityStorageBase.php \Drupal\Core\Entity\EntityStorageBase::setStaticCache()
Stores entities in the static entity cache.
Parameters
\Drupal\Core\Entity\EntityInterface[] $entities: Entities to store in the cache.
1 call to EntityStorageBase::setStaticCache()
- EntityStorageBase::loadMultiple in core/
lib/ Drupal/ Core/ Entity/ EntityStorageBase.php - Loads one or more entities.
1 method overrides EntityStorageBase::setStaticCache()
- ConfigEntityStorage::setStaticCache in core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityStorage.php - Stores entities in the static entity cache.
File
- core/
lib/ Drupal/ Core/ Entity/ EntityStorageBase.php, line 155 - Contains \Drupal\Core\Entity\EntityStorageBase.
Class
- EntityStorageBase
- A base entity storage class.
Namespace
Drupal\Core\EntityCode
protected function setStaticCache(array $entities) {
if ($this->entityType
->isStaticallyCacheable()) {
$this->entities += $entities;
}
}