You are here

protected function CachedStorage::getCacheKey in Drupal 8

Same name and namespace in other branches
  1. 9 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.

5 calls to CachedStorage::getCacheKey()
CachedStorage::delete in core/lib/Drupal/Core/Config/CachedStorage.php
Deletes a configuration object from the storage.
CachedStorage::findByPrefix in core/lib/Drupal/Core/Config/CachedStorage.php
Finds configuration object names starting with a given prefix.
CachedStorage::read in core/lib/Drupal/Core/Config/CachedStorage.php
Reads configuration data from the storage.
CachedStorage::rename in core/lib/Drupal/Core/Config/CachedStorage.php
Renames a configuration object in the storage.
CachedStorage::write in core/lib/Drupal/Core/Config/CachedStorage.php
Writes configuration data to the storage.

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