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
1 2 3 4 5 6 7 8 | 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 ; } } } |
Please login to continue.