0ceb816859a3e4f4d11a9d2c2314de3fd0d7738e
[yaffs-website] / web / themes / contrib / bootstrap / src / Plugin / Setting / JavaScript / Tooltips / TooltipSelector.php
1 <?php
2 /**
3  * @file
4  * Contains \Drupal\bootstrap\Plugin\Setting\JavaScript\Tooltips\TooltipSelector.
5  */
6
7 namespace Drupal\bootstrap\Plugin\Setting\JavaScript\Tooltips;
8
9 use Drupal\bootstrap\Annotation\BootstrapSetting;
10 use Drupal\bootstrap\Plugin\Setting\SettingBase;
11 use Drupal\Core\Annotation\Translation;
12
13 /**
14  * The "tooltip_selector" theme setting.
15  *
16  * @ingroup plugins_setting
17  *
18  * @BootstrapSetting(
19  *   id = "tooltip_selector",
20  *   type = "textfield",
21  *   title = @Translation("selector"),
22  *   description = @Translation("If a selector is provided, tooltip objects will be delegated to the specified targets."),
23  *   defaultValue = "",
24  *   groups = {
25  *     "javascript" = @Translation("JavaScript"),
26  *     "tooltips" = @Translation("Tooltips"),
27  *     "options" = @Translation("Options"),
28  *   },
29  * )
30  */
31 class TooltipSelector extends SettingBase {
32
33   /**
34    * {@inheritdoc}
35    */
36   public function drupalSettings() {
37     return !!$this->theme->getSetting('tooltip_enabled');
38   }
39
40 }