function KeyValueStoreInterface::delete

Same name in other branches
  1. 9 core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php \Drupal\Core\KeyValueStore\KeyValueStoreInterface::delete()
  2. 8.9.x core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php \Drupal\Core\KeyValueStore\KeyValueStoreInterface::delete()
  3. 11.x 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);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.