You are here

public function WebformElementManager::isExcluded in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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\Plugin

Code

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