function LocaleProjectStorage::deleteMultiple

Same name in other branches
  1. 9 core/modules/locale/src/LocaleProjectStorage.php \Drupal\locale\LocaleProjectStorage::deleteMultiple()
  2. 8.9.x core/modules/locale/src/LocaleProjectStorage.php \Drupal\locale\LocaleProjectStorage::deleteMultiple()
  3. 10 core/modules/locale/src/LocaleProjectStorage.php \Drupal\locale\LocaleProjectStorage::deleteMultiple()
1 call to LocaleProjectStorage::deleteMultiple()
LocaleProjectStorage::delete in core/modules/locale/src/LocaleProjectStorage.php

File

core/modules/locale/src/LocaleProjectStorage.php, line 121

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.