You are here

public static function BatchExportProcessor::onFinishBatchProcess in Content Synchronizer 8

Same name and namespace in other branches
  1. 8.2 src/Processors/BatchExportProcessor.php \Drupal\content_synchronizer\Processors\BatchExportProcessor::onFinishBatchProcess()
  2. 3.x src/Processors/BatchExportProcessor.php \Drupal\content_synchronizer\Processors\BatchExportProcessor::onFinishBatchProcess()

Callback method.

Overrides BatchProcessorBase::onFinishBatchProcess

File

src/Processors/BatchExportProcessor.php, line 106

Class

BatchExportProcessor
BatchExport processor.

Namespace

Drupal\content_synchronizer\Processors

Code

public static function onFinishBatchProcess($success, $results, $operations) {

  /** @var ExportEntityWriter $writer */
  $writer = $results['writer'];
  $processor = new ExportProcessor($writer);
  if ($archiveUri = $processor
    ->closeProcess()) {

    // Redirection :
    if (array_key_exists('finishCallback', $results)) {
      self::callFinishCallback($results['finishCallback'], $archiveUri);
    }
  }
}