public function ExportConfirmForm::onBatchEnd in Content Synchronizer 8
Same name and namespace in other branches
- 8.2 src/Form/ExportConfirmForm.php \Drupal\content_synchronizer\Form\ExportConfirmForm::onBatchEnd()
- 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\FormCode
public function onBatchEnd($archiveUri) {
$redirectUrl = $this
->getTmpStoredData('url');
\Drupal::service(ArchiveDownloader::SERVICE_NAME)
->redirectWithArchivePath($redirectUrl, $archiveUri);
}