CachedStorage::getCacheKeys

protected CachedStorage::getCacheKeys(array $names)

Returns a cache key map for an array of configuration names.

Parameters

array $names: The configuration names.

Return value

array An array of cache keys keyed by configuration names.

File

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

Class

CachedStorage
Defines the cached storage.

Namespace

Drupal\Core\Config

Code

protected function getCacheKeys(array $names) {
  $prefix = $this->getCollectionPrefix();
  $cache_keys = array_map(function($name) use ($prefix) {
    return $prefix . $name;
  }, $names);

  return array_combine($names, $cache_keys);
}
doc_Drupal
2016-10-29 08:49:32
Comments
Leave a Comment

Please login to continue.