Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. State.php

function State::getMultiple

Overrides StateInterface::getMultiple

File

core/lib/Drupal/Core/State/State.php, line 75

Class

State
Provides the state system using a key value store.

Namespace

Drupal\Core\State

Code

public function getMultiple(array $keys) {
    $values = [];
    foreach ($keys as $key) {
        $values[$key] = $this->get($key);
    }
    return $values;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal