protected function ConfigFactory::getConfigCacheKeys in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Config/ConfigFactory.php \Drupal\Core\Config\ConfigFactory::getConfigCacheKeys()
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.
4 calls to ConfigFactory::getConfigCacheKeys()
- ConfigFactory::onConfigDelete in core/
lib/ Drupal/ Core/ Config/ ConfigFactory.php - Removes stale static cache entries when configuration is deleted.
- ConfigFactory::onConfigSave in core/
lib/ Drupal/ Core/ Config/ ConfigFactory.php - Updates stale static cache entries when configuration is saved.
- ConfigFactory::rename in core/
lib/ Drupal/ Core/ Config/ ConfigFactory.php - Renames a configuration object using the storage.
- ConfigFactory::reset in core/
lib/ Drupal/ Core/ Config/ ConfigFactory.php - Resets and re-initializes configuration objects. Internal use only.
File
- core/
lib/ Drupal/ Core/ Config/ ConfigFactory.php, line 313 - Contains \Drupal\Core\Config\ConfigFactory.
Class
- ConfigFactory
- Defines the configuration object factory.
Namespace
Drupal\Core\ConfigCode
protected function getConfigCacheKeys($name) {
return array_filter(array_keys($this->cache), function ($key) use ($name) {
// Return TRUE if the key is the name or starts with the configuration
// name plus the delimiter.
return $key === $name || strpos($key, $name . ':') === 0;
});
}