function KeyValueStoreInterface::setMultiple

Same name in other branches
  1. 9 core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php \Drupal\Core\KeyValueStore\KeyValueStoreInterface::setMultiple()
  2. 8.9.x core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php \Drupal\Core\KeyValueStore\KeyValueStoreInterface::setMultiple()
  3. 11.x core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php \Drupal\Core\KeyValueStore\KeyValueStoreInterface::setMultiple()

Saves key/value pairs.

Parameters

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

2 methods override KeyValueStoreInterface::setMultiple()
NullStorageExpirable::setMultiple in core/lib/Drupal/Core/KeyValueStore/NullStorageExpirable.php
Saves key/value pairs.
StorageBase::setMultiple in core/lib/Drupal/Core/KeyValueStore/StorageBase.php
Saves key/value pairs.

File

core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php, line 93

Class

KeyValueStoreInterface
Defines the interface for key/value store implementations.

Namespace

Drupal\Core\KeyValueStore

Code

public function setMultiple(array $data);

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