You are here

public static function DeveloperSyncController::getBatch in Apigee Edge 8

Gets the batch array.

Return value

array The batch array.

2 calls to DeveloperSyncController::getBatch()
CliService::sync in src/CliService.php
Handle the sync interaction.
DeveloperSyncController::run in src/Controller/DeveloperSyncController.php
Handler for 'apigee_edge.developer_sync.run'.

File

src/Controller/DeveloperSyncController.php, line 143

Class

DeveloperSyncController
Controller for the developer synchronization-related pages.

Namespace

Drupal\apigee_edge\Controller

Code

public static function getBatch() : array {
  $tag = static::generateTag('batch');
  return [
    'title' => t('Synchronizing developers'),
    'operations' => [
      [
        [
          static::class,
          'batchGenerateJobs',
        ],
        [
          $tag,
        ],
      ],
      [
        [
          static::class,
          'batchExecuteJobs',
        ],
        [
          $tag,
        ],
      ],
    ],
    'finished' => [
      static::class,
      'batchFinished',
    ],
  ];
}