MemoryStorage::setMultiple

public MemoryStorage::setMultiple(array $data)

Saves key/value pairs.

Parameters

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

Overrides StorageBase::setMultiple

File

core/lib/Drupal/Core/KeyValueStore/MemoryStorage.php, line 66

Class

MemoryStorage
Defines a default key/value store implementation.

Namespace

Drupal\Core\KeyValueStore

Code

public function setMultiple(array $data) {
  $this->data = $data + $this->data;
}
doc_Drupal
2016-10-29 09:25:54
Comments
Leave a Comment

Please login to continue.