public function ConfigFactory::getCacheKey

Gets the cache key for a given config name in a particular context.

Parameters

string $name: The name of the configuration object.

\Drupal\Core\Config\Context\ContextInterface $context: The configuration context.

Return value

string The cache key.

2 calls to ConfigFactory::getCacheKey()
ConfigFactory::get in drupal/core/lib/Drupal/Core/Config/ConfigFactory.php
Returns a configuration object for a given name and context.
ConfigFactory::rename in drupal/core/lib/Drupal/Core/Config/ConfigFactory.php
Renames a configuration object using the storage controller.

File

drupal/core/lib/Drupal/Core/Config/ConfigFactory.php, line 191
Definition of Drupal\Core\Config\ConfigFactory.

Class

ConfigFactory
Defines the configuration object factory.

Namespace

Drupal\Core\Config

Code

public function getCacheKey($name, ContextInterface $context) {
  return $name . ':' . $context
    ->getUuid();
}