You are here

public function SettingsController::updateStatus in Popup Maker - All popup types 8

To update the status of popup.

1 string reference to 'SettingsController::updateStatus'
popup_maker.routing.yml in ./popup_maker.routing.yml
popup_maker.routing.yml

File

src/Controller/SettingsController.php, line 220

Class

SettingsController
Settings Controller to the popup maker module.

Namespace

Drupal\popup_maker\Controller

Code

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');
}