function ConfigFactory::getCacheKeys

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Config/ConfigFactory.php \Drupal\Core\Config\ConfigFactory::getCacheKeys()
  2. 10 core/lib/Drupal/Core/Config/ConfigFactory.php \Drupal\Core\Config\ConfigFactory::getCacheKeys()
  3. 8.9.x core/lib/Drupal/Core/Config/ConfigFactory.php \Drupal\Core\Config\ConfigFactory::getCacheKeys()

File

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

Class

ConfigFactory
Defines the configuration object factory.

Namespace

Drupal\Core\Config

Code

public function getCacheKeys() {
  // Because get() adds overrides both from $GLOBALS and from
  // $this->configFactoryOverrides, add cache keys for each.
  $keys[] = 'global_overrides';
  foreach ($this->configFactoryOverrides as $override) {
    $keys[] = $override->getCacheSuffix();
  }
  return $keys;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.