You are here

public static function DeveloperSyncController::batchGenerateJobs in Apigee Edge 8

The first batch operation.

This generates the developer-user sync jobs for the second operation.

Parameters

string $tag: Job tag.

array $context: Batch context.

File

src/Controller/DeveloperSyncController.php, line 166

Class

DeveloperSyncController
Controller for the developer synchronization-related pages.

Namespace

Drupal\apigee_edge\Controller

Code

public static function batchGenerateJobs(string $tag, array &$context) {
  $job = new DeveloperSync(static::getFilter());
  $job
    ->setTag($tag);
  apigee_edge_get_executor()
    ->call($job);
  $context['message'] = (string) $job;
  $context['finished'] = 1.0;
}