You are here

function formassembly_batch_get_forms in FormAssembly 8

Same name and namespace in other branches
  1. 7 formassembly.module \formassembly_batch_get_forms()

Implementation of callback_batch_operation()

1 string reference to 'formassembly_batch_get_forms'
FormAssemblyEntitySettingsForm::submitForm in src/Form/FormAssemblyEntitySettingsForm.php
Form submission handler.

File

./formassembly.module, line 92
Procedural code for formassembly module.

Code

function formassembly_batch_get_forms(&$context) {

  /** @var \Drupal\formassembly\FormAssemblyBatchProcessor $batchProcessor */
  $batchProcessor = \Drupal::service('formassembly.batch');
  if (empty($context['sandbox'])) {

    // Batch has not run before.  Initialize.
    $batchProcessor
      ->configureBatch($context);
  }
  $batchProcessor
    ->iterateBatch($context);
}