public function FormStateValuesTrait::isValueEmpty in Markdown 8.2
Implements \Drupal\Core\Form\FormStateInterface::isValueEmpty()
File
- src/
BcSupport/ FormStateValuesTrait.php, line 71
Class
- FormStateValuesTrait
- Provides methods to manage form state values.
Namespace
Drupal\markdown\BcSupportCode
public function isValueEmpty($key) {
$exists = NULL;
$value = NestedArray::getValue($this
->getValues(), (array) $key, $exists);
return !$exists || empty($value);
}