public function FormStateInterface::setFormState in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Form/FormStateInterface.php \Drupal\Core\Form\FormStateInterface::setFormState()
- 9 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
1 method overrides FormStateInterface::setFormState()
- 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);