You are here

protected property FormState::$values in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::values
  2. 10 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::values

An associative array of values submitted to the form.

The validation functions and submit functions use this array for nearly all their decision making. (Note that #tree determines whether the values are a flat array or an array whose structure parallels the $form array. See \Drupal\Core\Render\Element\FormElement for more information.)

This property is uncacheable.

Type: array

File

core/lib/Drupal/Core/Form/FormState.php, line 219

Class

FormState
Stores information about the state of a form.

Namespace

Drupal\Core\Form

Code

protected $values = [];