FormStateValuesTrait::setValue

public FormStateValuesTrait::setValue($key, $value)

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\Form

Code

public function setValue($key, $value) {
  NestedArray::setValue($this->getValues(), (array) $key, $value, TRUE);
  return $this;
}
doc_Drupal
2016-10-29 09:16:47
Comments
Leave a Comment

Please login to continue.