function public function TooltipEnabled::drupalSettings

8.x-3.x TooltipEnabled.php public TooltipEnabled::drupalSettings()

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

Class

TooltipEnabled
The "tooltip_enabled" theme setting.

Namespace

Drupal\bootstrap\Plugin\Setting\JavaScript\Tooltips

Source src/Plugin/Setting/JavaScript/Tooltips/TooltipEnabled.php (line 44)

public function drupalSettings() {
  return !!$this->theme->getSetting('tooltip_enabled');
}