4 * Contains \Drupal\bootstrap\Plugin\Setting\JavaScript\Popovers\PopoverSelector.
7 namespace Drupal\bootstrap\Plugin\Setting\JavaScript\Popovers;
9 use Drupal\bootstrap\Annotation\BootstrapSetting;
10 use Drupal\bootstrap\Plugin\Setting\SettingBase;
11 use Drupal\Core\Annotation\Translation;
14 * The "popover_selector" theme setting.
16 * @ingroup plugins_setting
19 * id = "popover_selector",
21 * title = @Translation("selector"),
22 * 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."),
25 * "javascript" = @Translation("JavaScript"),
26 * "popovers" = @Translation("Popovers"),
27 * "options" = @Translation("Options"),
30 * "https://github.com/twbs/bootstrap/issues/4215" = @Translation("Issue #4215"),
31 * "http://jsfiddle.net/fScua/" = @Translation("JSFiddle Example"),
35 class PopoverSelector extends SettingBase {
40 public function drupalSettings() {
41 return !!$this->theme->getSetting('popover_enabled');