bootstrap-8.x-3.23/src/Plugin/Setting/JavaScript/Tooltips/TooltipHtml.php
src/Plugin/Setting/JavaScript/Tooltips/TooltipHtml.php
<?php namespace Drupal\bootstrap\Plugin\Setting\JavaScript\Tooltips; use Drupal\bootstrap\Plugin\Setting\SettingBase; /** * The "tooltip_html" theme setting. * * @ingroup plugins_setting * * @BootstrapSetting( * id = "tooltip_html", * type = "checkbox", * title = @Translation("HTML"), * description = @Translation("Insert HTML into the tooltip. 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"), * "tooltips" = @Translation("Tooltips"), * "options" = @Translation("Options"), * }, * ) */ class TooltipHtml extends SettingBase { /** * {@inheritdoc} */ public function drupalSettings() { return !!$this->theme->getSetting('tooltip_enabled'); } }