You are here

public function State::delete in Service Container 7

Same name and namespace in other branches
  1. 7.2 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

lib/Drupal/Core/State/State.php, line 105
Contains \Drupal\Core\State\State.

Class

State
Provides the state system using a key value store.

Namespace

Drupal\Core\State

Code

public function delete($key) {
  $this
    ->deleteMultiple(array(
    $key,
  ));
}