public function WebformElementBase::isExcluded in Webform 6.x
Same name and namespace in other branches
- 8.5 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 580
Class
- WebformElementBase
- Provides a base class for a webform element.
Namespace
Drupal\webform\PluginCode
public function isExcluded() {
return $this->configFactory
->get('webform.settings')
->get('element.excluded_elements.' . $this->pluginDefinition['id']) ? TRUE : FALSE;
}