protected function WebformLibrariesManager::areElementsExcluded in Webform 8.5
Same name and namespace in other branches
- 6.x src/WebformLibrariesManager.php \Drupal\webform\WebformLibrariesManager::areElementsExcluded()
Determine if a library's elements are excluded.
Parameters
array $elements: An array of element types.
Return value
bool TRUE if a library's elements are excluded.
1 call to WebformLibrariesManager::areElementsExcluded()
- WebformLibrariesManager::initExcludedLibraries in src/
WebformLibrariesManager.php - Initialize excluded libraries.
File
- src/
WebformLibrariesManager.php, line 533
Class
- WebformLibrariesManager
- Webform libraries manager.
Namespace
Drupal\webformCode
protected function areElementsExcluded(array $elements) {
$excluded_elements = $this->configFactory
->get('webform.settings')
->get('element.excluded_elements');
if (!$excluded_elements) {
return FALSE;
}
return WebformArrayHelper::keysExist($excluded_elements, $elements);
}