function MemoryStorage::getMultiple

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

Overrides KeyValueStoreInterface::getMultiple

File

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

Class

MemoryStorage
Defines a default key/value store implementation.

Namespace

Drupal\Core\KeyValueStore

Code

public function getMultiple(array $keys) {
    return array_intersect_key($this->data, array_flip($keys));
}

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