function KeyValueStoreInterface::getMultiple

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

Returns the stored key/value pairs for a given set of keys.

@todo Determine the best return value for non-existing keys in https://www.drupal.org/node/2787737

Parameters

array $keys: A list of keys to retrieve.

Return value

array An associative array of items successfully returned, indexed by key.

1 call to KeyValueStoreInterface::getMultiple()
StorageBase::get in core/lib/Drupal/Core/KeyValueStore/StorageBase.php
Returns the stored value for a given key.
3 methods override KeyValueStoreInterface::getMultiple()
DatabaseStorage::getMultiple in core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php
Returns the stored key/value pairs for a given set of keys.
MemoryStorage::getMultiple in core/lib/Drupal/Core/KeyValueStore/MemoryStorage.php
Returns the stored key/value pairs for a given set of keys.
NullStorageExpirable::getMultiple in core/lib/Drupal/Core/KeyValueStore/NullStorageExpirable.php
Returns the stored key/value pairs for a given set of keys.

File

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

Class

KeyValueStoreInterface
Defines the interface for key/value store implementations.

Namespace

Drupal\Core\KeyValueStore

Code

public function getMultiple(array $keys);

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