You are here

public function FormAssemblyBatchProcessor::configureBatch in FormAssembly 8

Configures the batch with unique id.

Parameters

array $config: An array with batch configuration options.

File

src/FormAssemblyBatchProcessor.php, line 70

Class

FormAssemblyBatchProcessor
The "business logic" of the batch process for syncing with FormAssembly.

Namespace

Drupal\formassembly

Code

public function configureBatch(array &$config) {

  /*
   * We need to provide a unique key to the sync service for this batch.
   * The service will use the key to cache results between calls.
   */
  $config['sandbox']['sync_id'] = $this->uuid
    ->generate();
}