public function FillPdfSaveAction::execute in FillPDF 5.0.x
Same name and namespace in other branches
- 8.4 src/Plugin/FillPdfActionPlugin/FillPdfSaveAction.php \Drupal\fillpdf\Plugin\FillPdfActionPlugin\FillPdfSaveAction::execute()
Executes this plugin.
Saves the PDF file to the filesystem and redirects to the front page.
Return value
\Symfony\Component\HttpFoundation\RedirectResponse Redirects user to the front page.
Overrides FillPdfActionPluginInterface::execute
1 method overrides FillPdfSaveAction::execute()
- FillPdfRedirectAction::execute in src/
Plugin/ FillPdfActionPlugin/ FillPdfRedirectAction.php - Executes this plugin.
File
- src/
Plugin/ FillPdfActionPlugin/ FillPdfSaveAction.php, line 68
Class
- FillPdfSaveAction
- Action plugin saving a generated PDF file to the filesystem.
Namespace
Drupal\fillpdf\Plugin\FillPdfActionPluginCode
public function execute() {
$this
->savePdf();
// @todo: Fix based on value of post_save_redirect, once I add that
$response = new RedirectResponse(Url::fromRoute('<front>')
->toString());
return $response;
}