You are here

public function ConfigFactory::getCacheKeys in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Config/ConfigFactory.php \Drupal\Core\Config\ConfigFactory::getCacheKeys()

The cache keys associated with the state of the config factory.

All state information that can influence the result of a get() should be included. Typically, this includes a key for each override added via addOverride(). This allows external code to maintain caches of configuration data in addition to or instead of caches maintained by the factory.

Return value

array An array of strings, used to generate a cache ID.

Overrides ConfigFactoryInterface::getCacheKeys

1 call to ConfigFactory::getCacheKeys()
ConfigFactory::getConfigCacheKey in core/lib/Drupal/Core/Config/ConfigFactory.php
Gets the static cache key for a given config name.

File

core/lib/Drupal/Core/Config/ConfigFactory.php, line 275
Contains \Drupal\Core\Config\ConfigFactory.

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;
}