public function CachedStorage::deleteAll

Implements Drupal\Core\Config\StorageInterface::deleteAll().

Overrides StorageInterface::deleteAll

File

drupal/core/lib/Drupal/Core/Config/CachedStorage.php, line 148
Contains Drupal\Core\Config\CachedStorage.

Class

CachedStorage
Defines the cached storage controller.

Namespace

Drupal\Core\Config

Code

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.
  $cids = $this->storage
    ->listAll($prefix);
  if ($this->storage
    ->deleteAll($prefix)) {
    $this->cache
      ->deleteMultiple($cids);
    return TRUE;
  }
  return FALSE;
}