public function FeaturesGenerationArchive::exportFormSubmit in Features 8.3
Same name and namespace in other branches
- 8.4 src/Plugin/FeaturesGeneration/FeaturesGenerationArchive.php \Drupal\features\Plugin\FeaturesGeneration\FeaturesGenerationArchive::exportFormSubmit()
Responds to the submission of \Drupal\features_ui\Form\FeaturesExportForm.
Overrides FeaturesGenerationMethodBase::exportFormSubmit
File
- src/
Plugin/ FeaturesGeneration/ FeaturesGenerationArchive.php, line 300
Class
- FeaturesGenerationArchive
- Class for generating a compressed archive of packages.
Namespace
Drupal\features\Plugin\FeaturesGenerationCode
public function exportFormSubmit(array &$form, FormStateInterface $form_state) {
// Redirect to the archive file download.
$form_state
->setRedirect('features.export_download', [
'uri' => $this->archiveName,
'token' => $this->csrfToken
->get($this->archiveName),
]);
}