You are here

public function State::deleteMultiple 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::deleteMultiple()

Deletes multiple items.

Parameters

array $keys: A list of item names to delete.

Overrides StateInterface::deleteMultiple

1 call to State::deleteMultiple()
State::delete in core/lib/Drupal/Core/State/State.php
Deletes an item.

File

core/lib/Drupal/Core/State/State.php, line 112
Contains \Drupal\Core\State\State.

Class

State
Provides the state system using a key value store.

Namespace

Drupal\Core\State

Code

public function deleteMultiple(array $keys) {
  foreach ($keys as $key) {
    unset($this->cache[$key]);
  }
  $this->keyValueStore
    ->deleteMultiple($keys);
}