protected function ConfigEntityStorage::setStaticCache in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php \Drupal\Core\Config\Entity\ConfigEntityStorage::setStaticCache()
Stores entities in the static entity cache.
Parameters
\Drupal\Core\Entity\EntityInterface[] $entities: Entities to store in the cache.
Overrides EntityStorageBase::setStaticCache
File
- core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityStorage.php, line 355 - Contains \Drupal\Core\Config\Entity\ConfigEntityStorage.
Class
- ConfigEntityStorage
- Defines the storage class for configuration entities.
Namespace
Drupal\Core\Config\EntityCode
protected function setStaticCache(array $entities) {
if ($this->entityType
->isStaticallyCacheable()) {
$config_overrides_key = $this->overrideFree ? '' : implode(':', $this->configFactory
->getCacheKeys());
foreach ($entities as $id => $entity) {
$this->entities[$id][$config_overrides_key] = $entity;
}
}
}