bc863f7e5f5e4b36dd86145416db03d479399a1f
[yaffs-website] / web / themes / contrib / bootstrap / src / Plugin / Setting / JavaScript / Popovers / PopoverContainer.php
1 <?php
2
3 namespace Drupal\bootstrap\Plugin\Setting\JavaScript\Popovers;
4
5 use Drupal\bootstrap\Plugin\Setting\SettingBase;
6
7 /**
8  * The "popover_container" theme setting.
9  *
10  * @ingroup plugins_setting
11  *
12  * @BootstrapSetting(
13  *   id = "popover_container",
14  *   type = "textfield",
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",
18  *   groups = {
19  *     "javascript" = @Translation("JavaScript"),
20  *     "popovers" = @Translation("Popovers"),
21  *     "options" = @Translation("Options"),
22  *   },
23  * )
24  */
25 class PopoverContainer extends SettingBase {
26
27   /**
28    * {@inheritdoc}
29    */
30   public function drupalSettings() {
31     return !!$this->theme->getSetting('popover_enabled');
32   }
33
34 }