You are here

public function FormStateValuesTrait::hasValue in Markdown 8.2

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

File

src/BcSupport/FormStateValuesTrait.php, line 62

Class

FormStateValuesTrait
Provides methods to manage form state values.

Namespace

Drupal\markdown\BcSupport

Code

public function hasValue($key) {
  $exists = NULL;
  $value = NestedArray::getValue($this
    ->getValues(), (array) $key, $exists);
  return $exists && isset($value);
}