8.3.x FormStateInterface.php public FormStateInterface::setFormState(array $form_state_additions)
8.0.x FormStateInterface.php public FormStateInterface::setFormState(array $form_state_additions)
8.1.x FormStateInterface.php public FormStateInterface::setFormState(array $form_state_additions)
8.2.x FormStateInterface.php public FormStateInterface::setFormState(array $form_state_additions)
8.4.x FormStateInterface.php public FormStateInterface::setFormState(array $form_state_additions)

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()
FormState::setFormState in core/lib/Drupal/Core/Form/FormState.php
Sets the value of the form state.

File

core/lib/Drupal/Core/Form/FormStateInterface.php, line 91

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);