public function ConfigFactory::getCacheKeys

Gets all the cache keys that match the provided config name.

Parameters

string $name: The name of the configuration object.

Return value

array An array of cache keys that match the provided config name.

1 call to ConfigFactory::getCacheKeys()
ConfigFactory::reset in drupal/core/lib/Drupal/Core/Config/ConfigFactory.php
Resets and re-initializes configuration objects. Internal use only.

File

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

Class

ConfigFactory
Defines the configuration object factory.

Namespace

Drupal\Core\Config

Code

public function getCacheKeys($name) {
  $cache_keys = array_keys($this->cache);
  return array_filter($cache_keys, function ($key) use ($name) {
    return strpos($key, $name) !== false;
  });
}