PopoverContent.php in Express 8
File
themes/contrib/bootstrap/src/Plugin/Setting/JavaScript/Popovers/PopoverContent.phpView source
<?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');
}
}
Classes
Name![]() |
Description |
---|---|
PopoverContent | The "popover_content" theme setting. |