PopoverTriggerAutoclose.php in Express 8
File
themes/contrib/bootstrap/src/Plugin/Setting/JavaScript/Popovers/PopoverTriggerAutoclose.phpView source
<?php
/**
* @file
* Contains \Drupal\bootstrap\Plugin\Setting\JavaScript\Popovers\PopoverTriggerAutoclose.
*/
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_trigger_autoclose" theme setting.
*
* @ingroup plugins_setting
*
* @BootstrapSetting(
* id = "popover_trigger_autoclose",
* type = "checkbox",
* title = @Translation("Auto-close on document click"),
* description = @Translation("Will automatically close the current popover if a click occurs anywhere else other than the popover element."),
* defaultValue = 1,
* groups = {
* "javascript" = @Translation("JavaScript"),
* "popovers" = @Translation("Popovers"),
* "options" = @Translation("Options"),
* },
* )
*/
class PopoverTriggerAutoclose extends SettingBase {
/**
* {@inheritdoc}
*/
public function drupalSettings() {
return !!$this->theme
->getSetting('popover_enabled');
}
}
Classes
Name | Description |
---|---|
PopoverTriggerAutoclose | The "popover_trigger_autoclose" theme setting. |