express-8.x-1.x-dev/themes/contrib/bootstrap/src/Plugin/Setting/JavaScript/Popovers/PopoverContent.php
themes/contrib/bootstrap/src/Plugin/Setting/JavaScript/Popovers/PopoverContent.php
<?php /** * @file * Contains \Drupal\bootstrap\Plugin\Setting\JavaScript\Popovers\PopoverContent. */ namespace Drupal\bootstrap\Plugin\Setting\JavaScript\Popovers; use Drupal\bootstrap\Annotation\BootstrapSetting; use Drupal\bootstrap\Plugin\Setting\SettingBase; use Drupal\Core\Annotation\Translation; /** * The "popover_content" theme setting. * * @ingroup plugins_setting * * @BootstrapSetting( * id = "popover_content", * type = "textfield", * title = @Translation("content"), * description = @Translation("Default content value if <code>data-content</code> or <code>data-target</code> attributes are not present."), * defaultValue = "", * groups = { * "javascript" = @Translation("JavaScript"), * "popovers" = @Translation("Popovers"), * "options" = @Translation("Options"), * }, * ) */ class PopoverContent extends SettingBase { /** * {@inheritdoc} */ public function drupalSettings() { return !!$this->theme->getSetting('popover_enabled'); } }