public function State::delete in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/State/State.php \Drupal\Core\State\State::delete()
Deletes an item.
Parameters
string $key: The item name to delete.
Overrides StateInterface::delete
File
- core/
lib/ Drupal/ Core/ State/ State.php, line 100
Class
- State
- Provides the state system using a key value store.
Namespace
Drupal\Core\StateCode
public function delete($key) {
$this
->deleteMultiple([
$key,
]);
}