FormState::setTemporary

public FormState::setTemporary(array $temporary)

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;
}
doc_Drupal
2016-10-29 09:16:08
Comments
Leave a Comment

Please login to continue.