
| Current Path : /var/www/html1/web/themes/contrib/bootstrap/src/Plugin/Setting/JavaScript/Modals/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html1/web/themes/contrib/bootstrap/src/Plugin/Setting/JavaScript/Modals/ModalBackdrop.php |
<?php
namespace Drupal\bootstrap\Plugin\Setting\JavaScript\Modals;
use Drupal\bootstrap\Plugin\Setting\SettingBase;
/**
* The "modal_backdrop" theme setting.
*
* @ingroup plugins_setting
*
* @BootstrapSetting(
* id = "modal_backdrop",
* type = "select",
* title = @Translation("backdrop"),
* description = @Translation("Includes a modal-backdrop element. Alternatively, specify <code>static</code> for a backdrop which doesn't close the modal on click."),
* defaultValue = "true",
* groups = {
* "javascript" = @Translation("JavaScript"),
* "modals" = @Translation("Modals"),
* "options" = @Translation("Options"),
* },
* options = {
* "false" = @Translation("Disabled"),
* "true" = @Translation("Enabled"),
* "static" = @Translation("Static"),
* },
* )
*/
class ModalBackdrop extends SettingBase {
/**
* {@inheritdoc}
*/
public function drupalSettings() {
return !!$this->theme->getSetting('modal_enabled');
}
}