public function WebformElementManager::isExcluded in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElementManager.php \Drupal\webform\Plugin\WebformElementManager::isExcluded()
Determine if an element type is excluded.
Parameters
string $type: The element type.
Return value
bool TRUE if the element is excluded.
Overrides WebformElementManagerInterface::isExcluded
File
- src/
Plugin/ WebformElementManager.php, line 363
Class
- WebformElementManager
- Provides a plugin manager for webform element plugins.
Namespace
Drupal\webform\PluginCode
public function isExcluded($type) {
return $this->configFactory
->get('webform.settings')
->get('element.excluded_elements.' . $type) ? TRUE : FALSE;
}