ConfigEntityStorage::setStaticCache

protected ConfigEntityStorage::setStaticCache(array $entities)

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 350

Class

ConfigEntityStorage
Defines the storage class for configuration entities.

Namespace

Drupal\Core\Config\Entity

Code

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;
    }
  }
}
doc_Drupal
2016-10-29 08:52:57
Comments
Leave a Comment

Please login to continue.