public function PopoverTriggerAutoclose::drupalSettings in Express 8
Determines whether a theme setting should added to drupalSettings.
By default, this value will be FALSE unless the method is overridden. This is to ensure that no sensitive information can be potientially leaked.
Return value
bool TRUE or FALSE
Overrides SettingBase::drupalSettings
See also
\Drupal\bootstrap\Plugin\Setting\SettingBase::drupalSettings()
File
- themes/
contrib/ bootstrap/ src/ Plugin/ Setting/ JavaScript/ Popovers/ PopoverTriggerAutoclose.php, line 36 - Contains \Drupal\bootstrap\Plugin\Setting\JavaScript\Popovers\PopoverTriggerAutoclose.
Class
- PopoverTriggerAutoclose
- The "popover_trigger_autoclose" theme setting.
Namespace
Drupal\bootstrap\Plugin\Setting\JavaScript\PopoversCode
public function drupalSettings() {
return !!$this->theme
->getSetting('popover_enabled');
}