public function FormStateValuesTrait::setValue in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Form/FormStateValuesTrait.php \Drupal\Core\Form\FormStateValuesTrait::setValue()
- 9 core/lib/Drupal/Core/Form/FormStateValuesTrait.php \Drupal\Core\Form\FormStateValuesTrait::setValue()
Implements \Drupal\Core\Form\FormStateInterface::setValue()
File
- core/
lib/ Drupal/ Core/ Form/ FormStateValuesTrait.php, line 45
Class
- FormStateValuesTrait
- Provides methods to manage form state values.
Namespace
Drupal\Core\FormCode
public function setValue($key, $value) {
NestedArray::setValue($this
->getValues(), (array) $key, $value, TRUE);
return $this;
}