function FormStateValuesTrait::setValueForElement
Same name in other branches
- 9 core/lib/Drupal/Core/Form/FormStateValuesTrait.php \Drupal\Core\Form\FormStateValuesTrait::setValueForElement()
- 8.9.x core/lib/Drupal/Core/Form/FormStateValuesTrait.php \Drupal\Core\Form\FormStateValuesTrait::setValueForElement()
- 11.x core/lib/Drupal/Core/Form/FormStateValuesTrait.php \Drupal\Core\Form\FormStateValuesTrait::setValueForElement()
Implements \Drupal\Core\Form\FormStateInterface::setValueForElement()
File
-
core/
lib/ Drupal/ Core/ Form/ FormStateValuesTrait.php, line 79
Class
- FormStateValuesTrait
- Provides methods to manage form state values.
Namespace
Drupal\Core\FormCode
public function setValueForElement(array $element, $value) {
return $this->setValue($element['#parents'], $value);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.