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