You are here

public function CampaignMonitorLocalBatchController::content in Campaign Monitor 8

1 string reference to 'CampaignMonitorLocalBatchController::content'
campaignmonitor_local.routing.yml in modules/campaignmonitor_local/campaignmonitor_local.routing.yml
modules/campaignmonitor_local/campaignmonitor_local.routing.yml

File

modules/campaignmonitor_local/src/Controller/CampaignMonitorLocalBatchController.php, line 13

Class

CampaignMonitorLocalBatchController

Namespace

Drupal\campaignmonitor_local\Controller

Code

public function content() {
  $batch = [
    'title' => t('Processing'),
    'operations' => [
      [
        'campaignmonitor_local_batch',
        [
          'subscription_queue',
        ],
      ],
    ],
    'finished' => 'campaignmonitor_local_finished_callback',
    'file' => drupal_get_path('module', 'campaignmonitor_local') . '/campaignmonitor_local.batch.inc',
  ];
  batch_set($batch);
  return batch_process('user');
}