82bcb67056a1d28a91610edae161f9d3d45735e1
[yaffs-website] / web / themes / contrib / bootstrap / src / Plugin / Setting / JavaScript / Popovers / PopoverHtml.php
1 <?php
2
3 namespace Drupal\bootstrap\Plugin\Setting\JavaScript\Popovers;
4
5 use Drupal\bootstrap\Plugin\Setting\SettingBase;
6
7 /**
8  * The "popover_html" theme setting.
9  *
10  * @ingroup plugins_setting
11  *
12  * @BootstrapSetting(
13  *   id = "popover_html",
14  *   type = "checkbox",
15  *   title = @Translation("HTML"),
16  *   description = @Translation("Insert HTML into the popover. If false, jQuery's text method will be used to insert content into the DOM. Use text if you're worried about XSS attacks."),
17  *   defaultValue = 0,
18  *   groups = {
19  *     "javascript" = @Translation("JavaScript"),
20  *     "popovers" = @Translation("Popovers"),
21  *     "options" = @Translation("Options"),
22  *   },
23  * )
24  */
25 class PopoverHtml extends SettingBase {
26
27   /**
28    * {@inheritdoc}
29    */
30   public function drupalSettings() {
31     return !!$this->theme->getSetting('popover_enabled');
32   }
33
34 }