protected function FillPdfSaveAction::savePdf in FillPDF 5.0.x
Same name and namespace in other branches
- 8.4 src/Plugin/FillPdfActionPlugin/FillPdfSaveAction.php \Drupal\fillpdf\Plugin\FillPdfActionPlugin\FillPdfSaveAction::savePdf()
Saves merged PDF data to the filesystem.
Return value
\Drupal\file\FileInterface|false The saved file entity, or FALSE on error.
See also
\Drupal\fillpdf\OutputHandlerInterface::savePdfToFile()
2 calls to FillPdfSaveAction::savePdf()
- FillPdfRedirectAction::execute in src/
Plugin/ FillPdfActionPlugin/ FillPdfRedirectAction.php - Executes this plugin.
- FillPdfSaveAction::execute in src/
Plugin/ FillPdfActionPlugin/ FillPdfSaveAction.php - Executes this plugin.
File
- src/
Plugin/ FillPdfActionPlugin/ FillPdfSaveAction.php, line 84
Class
- FillPdfSaveAction
- Action plugin saving a generated PDF file to the filesystem.
Namespace
Drupal\fillpdf\Plugin\FillPdfActionPluginCode
protected function savePdf() {
// @todo: Error handling?
return $this->outputHandler
->savePdfToFile($this->configuration);
}