
| Current Path : /var/www/html1/web/themes/contrib/bootstrap/src/Plugin/Setting/JavaScript/Popovers/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html1/web/themes/contrib/bootstrap/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');
}
}