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\BcSupportCode
public function hasValue($key) {
$exists = NULL;
$value = NestedArray::getValue($this
->getValues(), (array) $key, $exists);
return $exists && isset($value);
}