You are here

public function LocaleProjectStorage::setMultiple in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/locale/src/LocaleProjectStorage.php \Drupal\locale\LocaleProjectStorage::setMultiple()

Creates or updates multiple project records.

Parameters

array $data: An associative array of key/value pairs.

Overrides LocaleProjectStorageInterface::setMultiple

1 call to LocaleProjectStorage::setMultiple()
LocaleProjectStorage::set in core/modules/locale/src/LocaleProjectStorage.php
Creates or updates the project record.

File

core/modules/locale/src/LocaleProjectStorage.php, line 101
Contains \Drupal\locale\LocaleProjectStorage.

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