3 namespace Drupal\bootstrap\Plugin\Setting\JavaScript\Popovers;
5 use Drupal\bootstrap\Plugin\Setting\SettingBase;
8 * The "popover_container" theme setting.
10 * @ingroup plugins_setting
13 * id = "popover_container",
15 * title = @Translation("container"),
16 * 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."),
17 * defaultValue = "body",
19 * "javascript" = @Translation("JavaScript"),
20 * "popovers" = @Translation("Popovers"),
21 * "options" = @Translation("Options"),
25 class PopoverContainer extends SettingBase {
30 public function drupalSettings() {
31 return !!$this->theme->getSetting('popover_enabled');