Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Form/FormStateInterface.php \Drupal\Core\Form\FormStateInterface::setFormState()
  2. 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\Form

Code

public function setFormState(array $form_state_additions);