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

1
2
3
4
5
6
7
8
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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.