You are here

public function ExportConfirmForm::onBatchEnd in Content Synchronizer 8

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

On batch end redirect to the form url.

Parameters

string $archiveUri: THe archive to download.

File

src/Form/ExportConfirmForm.php, line 168

Class

ExportConfirmForm
Class ExportConfirmForm.

Namespace

Drupal\content_synchronizer\Form

Code

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