You are here

public function FormState::setStorage in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::setStorage()

Sets the entire set of arbitrary data.

Parameters

array $storage: The entire set of arbitrary data to store for this form.

Return value

$this

Overrides FormStateInterface::setStorage

File

core/lib/Drupal/Core/Form/FormState.php, line 727

Class

FormState
Stores information about the state of a form.

Namespace

Drupal\Core\Form

Code

public function setStorage(array $storage) {
  $this->storage = $storage;
  return $this;
}