97b10e56fe83d769a6286ad34195005b14717df2
[yaffs-website] / web / themes / contrib / bootstrap / src / Plugin / Setting / JavaScript / Tooltips / TooltipDelay.php
1 <?php
2
3 namespace Drupal\bootstrap\Plugin\Setting\JavaScript\Tooltips;
4
5 use Drupal\bootstrap\Plugin\Setting\SettingBase;
6
7 /**
8  * The "tooltip_delay" theme setting.
9  *
10  * @ingroup plugins_setting
11  *
12  * @BootstrapSetting(
13  *   id = "tooltip_delay",
14  *   type = "textfield",
15  *   title = @Translation("delay"),
16  *   description = @Translation("The amount of time to delay showing and hiding the tooltip (in milliseconds). Does not apply to manual trigger type."),
17  *   defaultValue = "0",
18  *   groups = {
19  *     "javascript" = @Translation("JavaScript"),
20  *     "tooltips" = @Translation("Tooltips"),
21  *     "options" = @Translation("Options"),
22  *   },
23  * )
24  */
25 class TooltipDelay extends SettingBase {
26
27   /**
28    * {@inheritdoc}
29    */
30   public function drupalSettings() {
31     return !!$this->theme->getSetting('tooltip_enabled');
32   }
33
34 }