ConfigFactory::propagateConfigOverrideCacheability

protected ConfigFactory::propagateConfigOverrideCacheability($cache_key, $name)

Propagates cacheability of config overrides to cached config objects.

Parameters

string $cache_key: The key of the cached config object to update.

string $name: The name of the configuration object to construct.

File

core/lib/Drupal/Core/Config/ConfigFactory.php, line 222

Class

ConfigFactory
Defines the configuration object factory.

Namespace

Drupal\Core\Config

Code

1
2
3
4
5
protected function propagateConfigOverrideCacheability($cache_key, $name) {
  foreach ($this->configFactoryOverrides as $override) {
    $this->cache[$cache_key]->addCacheableDependency($override->getCacheableMetadata($name));
  }
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.