public function FormState::setTemporary in Drupal 9
Same name and namespace in other branches
- 8 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\FormCode
public function setTemporary(array $temporary) {
$this->temporary = $temporary;
return $this;
}