public function FormStateInterface::setFormState in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Form/FormStateInterface.php \Drupal\Core\Form\FormStateInterface::setFormState()
- 10 core/lib/Drupal/Core/Form/FormStateInterface.php \Drupal\Core\Form\FormStateInterface::setFormState()
Sets the value of the form state.
Parameters
array $form_state_additions: An array of values to add to the form state.
Return value
$this
2 methods override FormStateInterface::setFormState()
- FormState::setFormState in core/
lib/ Drupal/ Core/ Form/ FormState.php - Sets the value of the form state.
- FormStateDecoratorBase::setFormState in core/
lib/ Drupal/ Core/ Form/ FormStateDecoratorBase.php - Sets the value of the form state.
File
- core/
lib/ Drupal/ Core/ Form/ FormStateInterface.php, line 90
Class
- FormStateInterface
- Provides an interface for an object containing the current state of a form.
Namespace
Drupal\Core\FormCode
public function setFormState(array $form_state_additions);