bootstrap-8.x-3.23/src/Plugin/Setting/JavaScript/Popovers/PopoverHtml.php
src/Plugin/Setting/JavaScript/Popovers/PopoverHtml.php
<?php namespace Drupal\bootstrap\Plugin\Setting\JavaScript\Popovers; use Drupal\bootstrap\Plugin\Setting\SettingBase; /** * The "popover_html" theme setting. * * @ingroup plugins_setting * * @BootstrapSetting( * id = "popover_html", * type = "checkbox", * title = @Translation("HTML"), * 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."), * defaultValue = 0, * groups = { * "javascript" = @Translation("JavaScript"), * "popovers" = @Translation("Popovers"), * "options" = @Translation("Options"), * }, * ) */ class PopoverHtml extends SettingBase { /** * {@inheritdoc} */ public function drupalSettings() { return !!$this->theme->getSetting('popover_enabled'); } }