function KeyValueStoreInterface::delete
Same name in other branches
- 9 core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php \Drupal\Core\KeyValueStore\KeyValueStoreInterface::delete()
- 10 core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php \Drupal\Core\KeyValueStore\KeyValueStoreInterface::delete()
- 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 110
Class
- KeyValueStoreInterface
- Defines the interface for key/value store implementations.
Namespace
Drupal\Core\KeyValueStoreCode
public function delete($key);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.