You are here

public function LocaleProjectStorage::deleteMultiple in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 118
Contains \Drupal\locale\LocaleProjectStorage.

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);
}