You are here

public function QuickExportController::onBatchEnd in Content Synchronizer 8

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

On batch end redirect to the form url.

Parameters

string $archiveUri: THe archive to download.

File

src/Controller/QuickExportController.php, line 71

Class

QuickExportController
Class QuickExportController.

Namespace

Drupal\content_synchronizer\Controller

Code

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