function State::deleteMultiple

Same name in other branches
  1. 9 core/lib/Drupal/Core/State/State.php \Drupal\Core\State\State::deleteMultiple()
  2. 10 core/lib/Drupal/Core/State/State.php \Drupal\Core\State\State::deleteMultiple()
  3. 11.x core/lib/Drupal/Core/State/State.php \Drupal\Core\State\State::deleteMultiple()

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 107

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.