hospital_management-8.x-1.x-dev/web/themes/bootstrap/src/Plugin/Setting/JavaScript/Popovers/PopoverDelay.php
web/themes/bootstrap/src/Plugin/Setting/JavaScript/Popovers/PopoverDelay.php
<?php
namespace Drupal\bootstrap\Plugin\Setting\JavaScript\Popovers;
use Drupal\bootstrap\Plugin\Setting\SettingBase;
/**
* The "popover_delay" theme setting.
*
* @ingroup plugins_setting
*
* @BootstrapSetting(
* id = "popover_delay",
* type = "textfield",
* title = @Translation("delay"),
* description = @Translation("The amount of time to delay showing and hiding the popover (in milliseconds). Does not apply to manual trigger type."),
* defaultValue = "0",
* groups = {
* "javascript" = @Translation("JavaScript"),
* "popovers" = @Translation("Popovers"),
* "options" = @Translation("Options"),
* },
* )
*/
class PopoverDelay extends SettingBase {
/**
* {@inheritdoc}
*/
public function drupalSettings() {
return !!$this->theme->getSetting('popover_enabled');
}
}
