You are here

public function StateWrapper::setMultiple in Devel 8

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

Saves key/value pairs.

Parameters

array $data: An associative array of key/value pairs.

Overrides StateInterface::setMultiple

File

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

Class

StateWrapper
Class StateWrapper.

Namespace

Drupal\webprofiler\State

Code

public function setMultiple(array $data) {
  $this->state
    ->setMultiple($data);
}