file ModalShow.php

Namespace

Drupal\bootstrap\Plugin\Setting\JavaScript\Modals
  1. <?php
  2. namespace Drupal\bootstrap\Plugin\Setting\JavaScript\Modals;
  3. use Drupal\bootstrap\Plugin\Setting\SettingBase;
  4. /**
  5. * The "modal_show" theme setting.
  6. *
  7. * @ingroup plugins_setting
  8. *
  9. * @BootstrapSetting(
  10. * id = "modal_show",
  11. * type = "checkbox",
  12. * title = @Translation("show"),
  13. * description = @Translation("Shows the modal when initialized."),
  14. * defaultValue = 1,
  15. * groups = {
  16. * "javascript" = @Translation("JavaScript"),
  17. * "modals" = @Translation("Modals"),
  18. * "options" = @Translation("Options"),
  19. * },
  20. * )
  21. */
  22. class ModalShow extends SettingBase {
  23. /**
  24. * {@inheritdoc}
  25. */
  26. public function drupalSettings() {
  27. return !!$this->theme->getSetting('modal_enabled');
  28. }
  29. }

Classes

Name Description
ModalShow The "modal_show" theme setting.