FormState::$values
Same name in other branches
- 9 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::values
- 8.9.x core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::values
- 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\FormElementBase for more information.)
This property is uncacheable.
Type: array
File
-
core/
lib/ Drupal/ Core/ Form/ FormState.php, line 243
Class
- FormState
- Stores information about the state of a form.
Namespace
Drupal\Core\FormCode
protected $values = [];
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.