You are here

public function FormStateInterface::setFormState in Drupal 9

Same name and namespace in other branches
  1. 8 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\Form

Code

public function setFormState(array $form_state_additions);