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