bootstrap3-1.0.1/src/Plugin/Setting/JavaScript/Popovers/PopoverSelector.php
src/Plugin/Setting/JavaScript/Popovers/PopoverSelector.php
<?php
namespace Drupal\bootstrap3\Plugin\Setting\JavaScript\Popovers;
use Drupal\bootstrap3\Plugin\Setting\SettingBase;
/**
* The "popover_selector" theme setting.
*
* @ingroup plugins_setting
*
* @BootstrapSetting(
* id = "popover_selector",
* type = "textfield",
* title = @Translation("selector"),
* description = @Translation("If a selector is provided, tooltip objects will be delegated to the specified targets. In practice, this is used to enable dynamic HTML content to have popovers added."),
* defaultValue = "",
* groups = {
* "javascript" = @Translation("JavaScript"),
* "popovers" = @Translation("Popovers"),
* "options" = @Translation("Options"),
* },
* see = {
* "https://github.com/twbs/bootstrap/issues/4215" = @Translation("Issue #4215"),
* "https://jsfiddle.net/fScua/" = @Translation("JSFiddle Example"),
* },
* )
*/
class PopoverSelector extends SettingBase {
/**
* {@inheritdoc}
*/
public function drupalSettings() {
return !!$this->theme->getSetting('popover_enabled');
}
}
