You are here

public function State::delete in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 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,
  ));
}