Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / themes / contrib / bootstrap / src / Plugin / Setting / JavaScript / Tooltips / TooltipSelector.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_selector" theme setting.
9  *
10  * @ingroup plugins_setting
11  *
12  * @BootstrapSetting(
13  *   id = "tooltip_selector",
14  *   type = "textfield",
15  *   title = @Translation("selector"),
16  *   description = @Translation("If a selector is provided, tooltip objects will be delegated to the specified targets."),
17  *   defaultValue = "",
18  *   groups = {
19  *     "javascript" = @Translation("JavaScript"),
20  *     "tooltips" = @Translation("Tooltips"),
21  *     "options" = @Translation("Options"),
22  *   },
23  * )
24  */
25 class TooltipSelector extends SettingBase {
26
27   /**
28    * {@inheritdoc}
29    */
30   public function drupalSettings() {
31     return !!$this->theme->getSetting('tooltip_enabled');
32   }
33
34 }