function public function ModalSelectText::drupalSettings

8.x-3.x ModalSelectText.php public ModalSelectText::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

ModalSelectText
The "modal_select_text" theme setting.

Namespace

Drupal\bootstrap\Plugin\Setting\JavaScript\Modals

Source src/Plugin/Setting/JavaScript/Modals/ModalSelectText.php (line 46)

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