3 namespace Drupal\bootstrap\Plugin\Setting\JavaScript\Popovers;
5 use Drupal\bootstrap\Plugin\Setting\SettingBase;
8 * The "popover_trigger_autoclose" theme setting.
10 * @ingroup plugins_setting
13 * id = "popover_trigger_autoclose",
15 * title = @Translation("Auto-close on document click"),
16 * description = @Translation("Will automatically close the current popover if a click occurs anywhere else other than the popover element."),
19 * "javascript" = @Translation("JavaScript"),
20 * "popovers" = @Translation("Popovers"),
21 * "options" = @Translation("Options"),
25 class PopoverTriggerAutoclose extends SettingBase {
30 public function drupalSettings() {
31 return !!$this->theme->getSetting('popover_enabled');