function ConfigFactory::getConfigCacheKey

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

Gets the static cache key for a given config name.

Parameters

string $name: The name of the configuration object.

bool $immutable: Whether or not the object is mutable.

Return value

string The cache key.

1 call to ConfigFactory::getConfigCacheKey()
ConfigFactory::doLoadMultiple in core/lib/Drupal/Core/Config/ConfigFactory.php
Returns a list of configuration objects for the given names.

File

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

Class

ConfigFactory
Defines the configuration object factory.

Namespace

Drupal\Core\Config

Code

protected function getConfigCacheKey($name, $immutable) {
    $suffix = '';
    if ($immutable) {
        $suffix = ':' . implode(':', $this->getCacheKeys());
    }
    return $name . $suffix;
}

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