You are here

public function FormStateValuesTrait::setValue in Markdown 8.2

Implements \Drupal\Core\Form\FormStateInterface::setValue()

1 call to FormStateValuesTrait::setValue()
FormStateValuesTrait::setValueForElement in src/BcSupport/FormStateValuesTrait.php
Implements \Drupal\Core\Form\FormStateInterface::setValueForElement()

File

src/BcSupport/FormStateValuesTrait.php, line 46

Class

FormStateValuesTrait
Provides methods to manage form state values.

Namespace

Drupal\markdown\BcSupport

Code

public function setValue($key, $value) {
  NestedArray::setValue($this
    ->getValues(), (array) $key, $value, TRUE);
  return $this;
}