public function SettingsController::updateStatus in Popup Maker - All popup types 8
To update the status of popup.
1 string reference to 'SettingsController::updateStatus'
File
- src/
Controller/ SettingsController.php, line 220
Class
- SettingsController
- Settings Controller to the popup maker module.
Namespace
Drupal\popup_maker\ControllerCode
public function updateStatus() {
if (isset($_POST['sgpm-disable-popup'])) {
$this
->disablePopup();
}
if (isset($_POST['sgpm-enable-popup'])) {
$this
->enablePopup();
}
return $this
->redirect('popup_maker.settings');
}