You are here

public function Storage::setMultiple in Express 8

Saves key/value pairs.

Parameters

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

Overrides MemoryStorage::setMultiple

1 call to Storage::setMultiple()
Storage::__construct in themes/contrib/bootstrap/src/Utility/Storage.php

File

themes/contrib/bootstrap/src/Utility/Storage.php, line 237
Contains \Drupal\bootstrap\Utility\Storage.

Class

Storage
Theme Storage.

Namespace

Drupal\bootstrap\Utility

Code

public function setMultiple(array $data) {
  foreach ($data as $key => $value) {
    if (is_array($value)) {
      $data[$key] = new StorageItem($value, $this);
    }
  }
  parent::setMultiple($data);
  $this
    ->changed();
}