function LocaleProjectStorage::setMultiple

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

File

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

Class

LocaleProjectStorage
Provides the locale project storage system using a key value store.

Namespace

Drupal\locale

Code

public function setMultiple(array $data) {
    foreach ($data as $key => $value) {
        $this->cache[$key] = $value;
    }
    $this->keyValueStore
        ->setMultiple($data);
    $this->sorted = FALSE;
}

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