You are here

protected function FillPdfSaveAction::savePdf in FillPDF 8.4

Same name and namespace in other branches
  1. 5.0.x 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\FillPdfActionPlugin

Code

protected function savePdf() {

  // @todo: Error handling?
  return $this->outputHandler
    ->savePdfToFile($this->configuration);
}