You are here

public function StorageBase::delete in Service Container 7.2

Same name and namespace in other branches
  1. 7 lib/Drupal/Core/KeyValueStore/StorageBase.php \Drupal\Core\KeyValueStore\StorageBase::delete()

Implements Drupal\Core\KeyValueStore\KeyValueStoreInterface::delete().

Overrides KeyValueStoreInterface::delete

1 method overrides StorageBase::delete()
MemoryStorage::delete in lib/Drupal/Core/KeyValueStore/MemoryStorage.php
Implements Drupal\Core\KeyValueStore\KeyValueStoreInterface::delete().

File

lib/Drupal/Core/KeyValueStore/StorageBase.php, line 56
Contains \Drupal\Core\KeyValueStore\StorageBase.

Class

StorageBase
Provides a base class for key/value storage implementations.

Namespace

Drupal\Core\KeyValueStore

Code

public function delete($key) {
  $this
    ->deleteMultiple(array(
    $key,
  ));
}