Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php \Drupal\Core\KeyValueStore\KeyValueStoreInterface::delete()
  2. 9 core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php \Drupal\Core\KeyValueStore\KeyValueStoreInterface::delete()

Deletes an item from the key/value store.

Parameters

string $key: The item name to delete.

2 methods override KeyValueStoreInterface::delete()
NullStorageExpirable::delete in core/lib/Drupal/Core/KeyValueStore/NullStorageExpirable.php
Deletes an item from the key/value store.
StorageBase::delete in core/lib/Drupal/Core/KeyValueStore/StorageBase.php
Deletes an item from the key/value store.

File

core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php, line 111

Class

KeyValueStoreInterface
Defines the interface for key/value store implementations.

Namespace

Drupal\Core\KeyValueStore

Code

public function delete($key);