public function ModalHelpController::enableBootstrapAutomatically in Modal 4.1.x
Same name and namespace in other branches
- 4.0.x src/Controller/ModalHelpController.php \Drupal\modal_page\Controller\ModalHelpController::enableBootstrapAutomatically()
1 string reference to 'ModalHelpController::enableBootstrapAutomatically'
File
- src/
Controller/ ModalHelpController.php, line 117
Class
- ModalHelpController
- Controller routines for help routes.
Namespace
Drupal\modal_page\ControllerCode
public function enableBootstrapAutomatically() {
$settings = $this->configFactory
->getEditable('modal_page.settings');
$verifyLoadBootstrapAutomatically = $settings
->get('verify_load_bootstrap_automatically');
if (empty($verifyLoadBootstrapAutomatically)) {
echo FALSE;
exit;
}
$settings
->set('load_bootstrap', TRUE);
$settings
->save();
echo TRUE;
exit;
}