You are here

public function WebformElementBase::isDisabled in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformElementBase.php \Drupal\webform\Plugin\WebformElementBase::isDisabled()

Checks if the element is disabled.

Return value

bool TRUE if the element is disabled.

Overrides WebformElementInterface::isDisabled

2 calls to WebformElementBase::isDisabled()
WebformElementBase::prepare in src/Plugin/WebformElementBase.php
Prepare an element to be rendered within a webform.
WebformManagedFileBase::getTestValues in src/Plugin/WebformElement/WebformManagedFileBase.php
Get test values for an element.

File

src/Plugin/WebformElementBase.php, line 666

Class

WebformElementBase
Provides a base class for a webform element.

Namespace

Drupal\webform\Plugin

Code

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