3 namespace Drupal\bootstrap\Plugin\Setting\JavaScript\Popovers;
5 use Drupal\bootstrap\Plugin\Setting\SettingBase;
8 * The "popover_html" theme setting.
10 * @ingroup plugins_setting
13 * id = "popover_html",
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."),
19 * "javascript" = @Translation("JavaScript"),
20 * "popovers" = @Translation("Popovers"),
21 * "options" = @Translation("Options"),
25 class PopoverHtml extends SettingBase {
30 public function drupalSettings() {
31 return !!$this->theme->getSetting('popover_enabled');