You are here

public function CampaignMonitorListsController::listDisable in Campaign Monitor 8

Same name and namespace in other branches
  1. 8.2 src/Controller/CampaignMonitorListsController.php \Drupal\campaignmonitor\Controller\CampaignMonitorListsController::listDisable()
1 string reference to 'CampaignMonitorListsController::listDisable'
campaignmonitor.routing.yml in ./campaignmonitor.routing.yml
campaignmonitor.routing.yml

File

src/Controller/CampaignMonitorListsController.php, line 134

Class

CampaignMonitorListsController
Campaign Monitor Lists controller.

Namespace

Drupal\campaignmonitor\Controller

Code

public function listDisable($list_id) {
  $this
    ->verifyAccess();
  $this
    ->listToggleEnable($list_id);
  drupal_set_message('list disabled');
  return new RedirectResponse('/admin/config/services/campaignmonitor/lists');
}