4 * Contains \Drupal\bootstrap\Plugin\Setting\JavaScript\Popovers\PopoverPlacement.
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_placement" theme setting.
16 * @ingroup plugins_setting
19 * id = "popover_placement",
21 * title = @Translation("placement"),
22 * description = @Translation("Where to position the popover. When <code>auto</code> is specified, it will dynamically reorient the popover. For example, if placement is <code>auto left</code>, the popover will display to the left when possible, otherwise it will display right."),
23 * defaultValue = "right",
25 * "top" = @Translation("top"),
26 * "bottom" = @Translation("bottom"),
27 * "left" = @Translation("left"),
28 * "right" = @Translation("right"),
29 * "auto" = @Translation("auto"),
30 * "auto top" = @Translation("auto top"),
31 * "auto bottom" = @Translation("auto bottom"),
32 * "auto left" = @Translation("auto left"),
33 * "auto right" = @Translation("auto right"),
36 * "javascript" = @Translation("JavaScript"),
37 * "popovers" = @Translation("Popovers"),
38 * "options" = @Translation("Options"),
42 class PopoverPlacement extends SettingBase {
47 public function drupalSettings() {
48 return !!$this->theme->getSetting('popover_enabled');