file PopoverSelector.php

Namespace

Drupal\bootstrap\Plugin\Setting\JavaScript\Popovers
  1. <?php
  2. namespace Drupal\bootstrap\Plugin\Setting\JavaScript\Popovers;
  3. use Drupal\bootstrap\Plugin\Setting\SettingBase;
  4. /**
  5. * The "popover_selector" theme setting.
  6. *
  7. * @ingroup plugins_setting
  8. *
  9. * @BootstrapSetting(
  10. * id = "popover_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. In practice, this is used to enable dynamic HTML content to have popovers added."),
  14. * defaultValue = "",
  15. * groups = {
  16. * "javascript" = @Translation("JavaScript"),
  17. * "popovers" = @Translation("Popovers"),
  18. * "options" = @Translation("Options"),
  19. * },
  20. * see = {
  21. * "https://github.com/twbs/bootstrap/issues/4215" = @Translation("Issue #4215"),
  22. * "https://jsfiddle.net/fScua/" = @Translation("JSFiddle Example"),
  23. * },
  24. * )
  25. */
  26. class PopoverSelector extends SettingBase {
  27. /**
  28. * {@inheritdoc}
  29. */
  30. public function drupalSettings() {
  31. return !!$this->theme->getSetting('popover_enabled');
  32. }
  33. }

Classes

Name Description
PopoverSelector The "popover_selector" theme setting.