You are here

public function WebformElementBase::isExcluded in Webform 8.5

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

Checks if the element is excluded via webform.settings.

Return value

bool TRUE if the element is excluded.

Overrides WebformElementInterface::isExcluded

1 call to WebformElementBase::isExcluded()
WebformElementBase::isEnabled in src/Plugin/WebformElementBase.php
Checks if the element is enabled.

File

src/Plugin/WebformElementBase.php, line 652

Class

WebformElementBase
Provides a base class for a webform element.

Namespace

Drupal\webform\Plugin

Code

public function isExcluded() {
  return $this->configFactory
    ->get('webform.settings')
    ->get('element.excluded_elements.' . $this->pluginDefinition['id']) ? TRUE : FALSE;
}