You are here

public function FormStateValuesTrait::setValueForElement in Markdown 8.2

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

File

src/BcSupport/FormStateValuesTrait.php, line 80

Class

FormStateValuesTrait
Provides methods to manage form state values.

Namespace

Drupal\markdown\BcSupport

Code

public function setValueForElement(array $element, $value) {
  return $this
    ->setValue($element['#parents'], $value);
}