public function State::deleteMultiple in Service Container 7
Same name and namespace in other branches
- 7.2 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 lib/
Drupal/ Core/ State/ State.php - Deletes an item.
File
- 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\StateCode
public function deleteMultiple(array $keys) {
foreach ($keys as $key) {
unset($this->cache[$key]);
}
$this->keyValueStore
->deleteMultiple($keys);
}