public function CachedStorage::delete

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

Overrides StorageInterface::delete

File

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

Class

CachedStorage
Defines the cached storage controller.

Namespace

Drupal\Core\Config

Code

public function delete($name) {

  // If the cache was the first to be deleted, another process might start
  // rebuilding the cache before the storage is gone.
  if ($this->storage
    ->delete($name)) {
    $this->cache
      ->delete($name);
    return TRUE;
  }
  return FALSE;
}