public function WebformElementBase::isEnabled in Webform 6.x
Same name and namespace in other branches
- 8.5 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 587 
Class
- WebformElementBase
- Provides a base class for a webform element.
Namespace
Drupal\webform\PluginCode
public function isEnabled() {
  return !$this
    ->isExcluded();
}