You are here

public function LaunchExportForm::onBatchEnd in Content Synchronizer 8

Same name and namespace in other branches
  1. 8.2 src/Form/LaunchExportForm.php \Drupal\content_synchronizer\Form\LaunchExportForm::onBatchEnd()
  2. 3.x src/Form/LaunchExportForm.php \Drupal\content_synchronizer\Form\LaunchExportForm::onBatchEnd()

Callback after batch.

File

src/Form/LaunchExportForm.php, line 101

Class

LaunchExportForm
Launch Export Form.

Namespace

Drupal\content_synchronizer\Form

Code

public function onBatchEnd($archiveUri) {
  $redirectUrl = $this->currentUrl;
  \Drupal::service(ArchiveDownloader::SERVICE_NAME)
    ->redirectWithArchivePath($redirectUrl, $archiveUri);
}