public function LocaleProjectStorage::deleteMultiple in Drupal 9
Same name and namespace in other branches
- 8 core/modules/locale/src/LocaleProjectStorage.php \Drupal\locale\LocaleProjectStorage::deleteMultiple()
Deletes multiple project records.
Parameters
array $keys: A list of item names to delete.
Overrides LocaleProjectStorageInterface::deleteMultiple
1 call to LocaleProjectStorage::deleteMultiple()
- LocaleProjectStorage::delete in core/
modules/ locale/ src/ LocaleProjectStorage.php - Deletes project records for a given key.
File
- core/
modules/ locale/ src/ LocaleProjectStorage.php, line 113
Class
- LocaleProjectStorage
- Provides the locale project storage system using a key value store.
Namespace
Drupal\localeCode
public function deleteMultiple(array $keys) {
foreach ($keys as $key) {
$this->cache[$key] = NULL;
}
$this->keyValueStore
->deleteMultiple($keys);
}