4 * Contains \Drupal\bootstrap\Plugin\Setting\JavaScript\Popovers\PopoverDelay.
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_delay" theme setting.
16 * @ingroup plugins_setting
19 * id = "popover_delay",
21 * title = @Translation("delay"),
22 * description = @Translation("The amount of time to delay showing and hiding the popover (in milliseconds). Does not apply to manual trigger type."),
25 * "javascript" = @Translation("JavaScript"),
26 * "popovers" = @Translation("Popovers"),
27 * "options" = @Translation("Options"),
31 class PopoverDelay extends SettingBase {
36 public function drupalSettings() {
37 return !!$this->theme->getSetting('popover_enabled');