4 * Contains \Drupal\bootstrap\Plugin\Setting\JavaScript\Popovers\PopoverContainer.
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_container" theme setting.
16 * @ingroup plugins_setting
19 * id = "popover_container",
21 * title = @Translation("container"),
22 * description = @Translation("Appends the popover to a specific element. Example: <code>body</code>. This option is particularly useful in that it allows you to position the popover in the flow of the document near the triggering element - which will prevent the popover from floating away from the triggering element during a window resize."),
23 * defaultValue = "body",
25 * "javascript" = @Translation("JavaScript"),
26 * "popovers" = @Translation("Popovers"),
27 * "options" = @Translation("Options"),
31 class PopoverContainer extends SettingBase {
36 public function drupalSettings() {
37 return !!$this->theme->getSetting('popover_enabled');