You are here

public function CampaignMonitorListsController::clearListCache in Campaign Monitor 8.2

Same name and namespace in other branches
  1. 8 src/Controller/CampaignMonitorListsController.php \Drupal\campaignmonitor\Controller\CampaignMonitorListsController::clearListCache()

Callback to clear config cache.

1 string reference to 'CampaignMonitorListsController::clearListCache'
campaignmonitor.routing.yml in ./campaignmonitor.routing.yml
campaignmonitor.routing.yml

File

src/Controller/CampaignMonitorListsController.php, line 205

Class

CampaignMonitorListsController
Campaign Monitor Lists controller.

Namespace

Drupal\campaignmonitor\Controller

Code

public function clearListCache() {
  $this->campaignMonitorManager
    ->clearCache();
  $this
    ->messenger()
    ->addStatus('Campaign Monitor caches cleared');
  return new RedirectResponse('/admin/config/services/campaignmonitor/lists');
}