You are here

public function WebformElementBase::isEnabled in Webform 8.5

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

Checks if the element is enabled.

Return value

bool TRUE if the element is enabled.

Overrides WebformElementInterface::isEnabled

3 calls to WebformElementBase::isEnabled()
WebformElementBase::isDisabled in src/Plugin/WebformElementBase.php
Checks if the element is disabled.
WebformManagedFileBase::displayDisabledWarning in src/Plugin/WebformElement/WebformManagedFileBase.php
Display element disabled warning.
WebformManagedFileBase::isEnabled in src/Plugin/WebformElement/WebformManagedFileBase.php
Checks if the element is enabled.
1 method overrides WebformElementBase::isEnabled()
WebformManagedFileBase::isEnabled in src/Plugin/WebformElement/WebformManagedFileBase.php
Checks if the element is enabled.

File

src/Plugin/WebformElementBase.php, line 659

Class

WebformElementBase
Provides a base class for a webform element.

Namespace

Drupal\webform\Plugin

Code

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