W3cubDocs

/Drupal 8

protected function ConfigFactory::getConfigCacheKey

protected ConfigFactory::getConfigCacheKey($name, $immutable)

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.

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!ConfigFactory.php/function/ConfigFactory::getConfigCacheKey/8.1.x