You are here

function formassembly_batch_finished in FormAssembly 8

Implementation of callback_batch_finished()

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

File

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

Code

function formassembly_batch_finished($success, $results, $operations) {

  /** @var \Drupal\formassembly\FormAssemblyBatchProcessor $batchProcessor */
  $batchProcessor = \Drupal::service('formassembly.batch');
  if ($success) {
    $batchProcessor
      ->batchPostProcess($results['sync_id']);
  }
}