You are here

public function FormState::setTemporary in Drupal 8

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

Sets temporary data.

Parameters

array $temporary: Temporary data accessible during the current page request only.

Return value

$this

Overrides FormStateInterface::setTemporary

File

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

Class

FormState
Stores information about the state of a form.

Namespace

Drupal\Core\Form

Code

public function setTemporary(array $temporary) {
  $this->temporary = $temporary;
  return $this;
}