You are here

public function StateWrapper::getMultiple in Devel 8

Same name and namespace in other branches
  1. 8.3 webprofiler/src/State/StateWrapper.php \Drupal\webprofiler\State\StateWrapper::getMultiple()
  2. 8.2 webprofiler/src/State/StateWrapper.php \Drupal\webprofiler\State\StateWrapper::getMultiple()
  3. 4.x webprofiler/src/State/StateWrapper.php \Drupal\webprofiler\State\StateWrapper::getMultiple()

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

Parameters

array $keys: A list of keys to retrieve.

Return value

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

Overrides StateInterface::getMultiple

File

webprofiler/src/State/StateWrapper.php, line 53

Class

StateWrapper
Class StateWrapper.

Namespace

Drupal\webprofiler\State

Code

public function getMultiple(array $keys) {
  foreach ($keys as $key) {
    $this->dataCollector
      ->addState($key);
  }
  return $this->state
    ->getMultiple($keys);
}