public function DatabaseStorage::deleteMultiple
public DatabaseStorage::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/DatabaseStorage.php, line 149
Class
- DatabaseStorage
- Defines a default key/value store implementation.
Namespace
Drupal\Core\KeyValueStoreCode
public function deleteMultiple(array $keys) { // Delete in chunks when a large array is passed. while ($keys) { $this->connection->delete($this->table) ->condition('name', array_splice($keys, 0, 1000), 'IN') ->condition('collection', $this->collection) ->execute(); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!KeyValueStore!DatabaseStorage.php/function/DatabaseStorage::deleteMultiple/8.1.x