public function DatabaseStorage::deleteMultiple in Service Container 7.2
Same name and namespace in other branches
- 7 lib/Drupal/Core/KeyValueStore/DatabaseStorage.php \Drupal\Core\KeyValueStore\DatabaseStorage::deleteMultiple()
Implements Drupal\Core\KeyValueStore\KeyValueStoreInterface::deleteMultiple().
Overrides KeyValueStoreInterface::deleteMultiple
1 call to DatabaseStorage::deleteMultiple()
- DatabaseStorageExpirable::deleteMultiple in lib/
Drupal/ Core/ KeyValueStore/ DatabaseStorageExpirable.php - Implements Drupal\Core\KeyValueStore\KeyValueStoreInterface::deleteMultiple().
1 method overrides DatabaseStorage::deleteMultiple()
- DatabaseStorageExpirable::deleteMultiple in lib/
Drupal/ Core/ KeyValueStore/ DatabaseStorageExpirable.php - Implements Drupal\Core\KeyValueStore\KeyValueStoreInterface::deleteMultiple().
File
- lib/
Drupal/ Core/ KeyValueStore/ DatabaseStorage.php, line 151 - Contains \Drupal\Core\KeyValueStore\DatabaseStorage.
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();
}
}