MemoryStorage::deleteMultiple

public MemoryStorage::deleteMultiple(array $keys)

Deletes multiple items from the key/value store.

Parameters

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

Overrides KeyValueStoreInterface::deleteMultiple

File

core/lib/Drupal/Core/KeyValueStore/MemoryStorage.php, line 88

Class

MemoryStorage
Defines a default key/value store implementation.

Namespace

Drupal\Core\KeyValueStore

Code

public function deleteMultiple(array $keys) {
  foreach ($keys as $key) {
    unset($this->data[$key]);
  }
}
doc_Drupal
2016-10-29 09:25:53
Comments
Leave a Comment

Please login to continue.