public function StorageBase::delete in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/KeyValueStore/StorageBase.php \Drupal\Core\KeyValueStore\StorageBase::delete()
Deletes an item from the key/value store.
Parameters
string $key: The item name to delete.
Overrides KeyValueStoreInterface::delete
1 method overrides StorageBase::delete()
- MemoryStorage::delete in core/
lib/ Drupal/ Core/ KeyValueStore/ MemoryStorage.php - Deletes an item from the key/value store.
File
- core/
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\KeyValueStoreCode
public function delete($key) {
$this
->deleteMultiple(array(
$key,
));
}