file TooltipSelector.php

Namespace

Drupal\bootstrap\Plugin\Setting\JavaScript\Tooltips
  1. <?php
  2. namespace Drupal\bootstrap\Plugin\Setting\JavaScript\Tooltips;
  3. use Drupal\bootstrap\Plugin\Setting\SettingBase;
  4. /**
  5. * The "tooltip_selector" theme setting.
  6. *
  7. * @ingroup plugins_setting
  8. *
  9. * @BootstrapSetting(
  10. * id = "tooltip_selector",
  11. * type = "textfield",
  12. * title = @Translation("selector"),
  13. * description = @Translation("If a selector is provided, tooltip objects will be delegated to the specified targets."),
  14. * defaultValue = "",
  15. * groups = {
  16. * "javascript" = @Translation("JavaScript"),
  17. * "tooltips" = @Translation("Tooltips"),
  18. * "options" = @Translation("Options"),
  19. * },
  20. * )
  21. */
  22. class TooltipSelector extends SettingBase {
  23. /**
  24. * {@inheritdoc}
  25. */
  26. public function drupalSettings() {
  27. return !!$this->theme->getSetting('tooltip_enabled');
  28. }
  29. }

Classes

Name Description
TooltipSelector The "tooltip_selector" theme setting.