You are here

public function LocaleProjectStorage::deleteMultiple in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/locale/src/LocaleProjectStorage.php \Drupal\locale\LocaleProjectStorage::deleteMultiple()
  2. 10 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\locale

Code

public function deleteMultiple(array $keys) {
  foreach ($keys as $key) {
    $this->cache[$key] = NULL;
  }
  $this->keyValueStore
    ->deleteMultiple($keys);
}