You are here

public function KeyValueStoreInterface::getMultiple in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 What's returned for non-existing keys?

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 58
Contains \Drupal\Core\KeyValueStore\KeyValueStoreInterface.

Class

KeyValueStoreInterface
Defines the interface for key/value store implementations.

Namespace

Drupal\Core\KeyValueStore

Code

public function getMultiple(array $keys);