You are here

public function YamlFormElementBase::isDisabled in YAML Form 8

Checks if element is disabled.

Return value

bool TRUE if the element is disabled.

Overrides YamlFormElementInterface::isDisabled

2 calls to YamlFormElementBase::isDisabled()
YamlFormElementBase::prepare in src/YamlFormElementBase.php
Prepare an element to be rendered within a form.
YamlFormManagedFileBase::getTestValue in src/Plugin/YamlFormElement/YamlFormManagedFileBase.php
Get test value for an element.

File

src/YamlFormElementBase.php, line 315

Class

YamlFormElementBase
Provides a base class for a form element.

Namespace

Drupal\yamlform

Code

public function isDisabled() {
  return !$this
    ->isEnabled();
}