function CachedStorage::deleteAll
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Config/CachedStorage.php \Drupal\Core\Config\CachedStorage::deleteAll()
- 10 core/lib/Drupal/Core/Config/CachedStorage.php \Drupal\Core\Config\CachedStorage::deleteAll()
- 11.x core/lib/Drupal/Core/Config/CachedStorage.php \Drupal\Core\Config\CachedStorage::deleteAll()
Overrides StorageInterface::deleteAll
File
-
core/
lib/ Drupal/ Core/ Config/ CachedStorage.php, line 215
Class
- CachedStorage
- Defines the cached storage.
Namespace
Drupal\Core\ConfigCode
public function deleteAll($prefix = '') {
// If the cache was the first to be deleted, another process might start
// rebuilding the cache before the storage is renamed.
$names = $this->storage
->listAll($prefix);
if ($this->storage
->deleteAll($prefix)) {
$this->cache
->deleteMultiple($this->getCacheKeys($names));
return TRUE;
}
return FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.