function CachedStorage::getCacheKey

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

Returns a cache key for a configuration name using the collection.

Parameters

string $name: The configuration name.

Return value

string The cache key for the configuration name.

File

core/lib/Drupal/Core/Config/CachedStorage.php, line 266

Class

CachedStorage
Defines the cached storage.

Namespace

Drupal\Core\Config

Code

protected function getCacheKey($name) {
  return $this->getCollectionPrefix() . $name;
}

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