You are here

public function WebformToggleTrait::isExcluded in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_toggles/src/Plugin/WebformElement/WebformToggleTrait.php \Drupal\webform_toggles\Plugin\WebformElement\WebformToggleTrait::isExcluded()

File

modules/webform_toggles/src/Plugin/WebformElement/WebformToggleTrait.php, line 15

Class

WebformToggleTrait
Provides a 'toggle' trait.

Namespace

Drupal\webform_toggles\Plugin\WebformElement

Code

public function isExcluded() {
  if (\Drupal::service('webform.libraries_manager')
    ->isExcluded('jquery.toggles')) {
    return TRUE;
  }
  return parent::isExcluded();
}