interface OutputHandlerInterface in FillPDF 8.4
Same name and namespace in other branches
- 5.0.x src/OutputHandlerInterface.php \Drupal\fillpdf\OutputHandlerInterface
Contains functions to standardize output handling for generated PDFs.
@package Drupal\fillpdf
Hierarchy
- interface \Drupal\fillpdf\OutputHandlerInterface
Expanded class hierarchy of OutputHandlerInterface
All classes that implement OutputHandlerInterface
File
- src/
OutputHandlerInterface.php, line 10
Namespace
Drupal\fillpdfView source
interface OutputHandlerInterface {
/**
* Saves merged PDF data to the filesystem.
*
* @param array $configuration
* An array of configuration as originally passed from
* HandlePdfController::handlePopulatedPdf() to the FillPdfActionPlugin,
* containing the following properties:
* form: The FillPdfForm object from which the PDF was generated.
* context: The FillPDF request context as returned by
* FillPdfLinkManipulatorInterface::parseLink().
* token_objects: The token data from which the PDF was generated.
* data: The populated PDF data itself.
* filename: The filename (not including path) with which
* the PDF should be presented.
* @param string $destination_path_override
* (optional) A destination path to override the one given by the
* FillPdfForm.
*
* @return \Drupal\file\FileInterface|false
* The file entity, or FALSE on error.
*
* @see \Drupal\fillpdf\FillPdfLinkManipulatorInterface::parseLink()
* @see \Drupal\fillpdf\Plugin\FillPdfActionPlugin\FillPdfSaveAction::savePdf()
*
* @todo: Rename 'token_objects' to 'entities' in FillPDF 5.x. Webform
* submissions are now entities, too.
*/
public function savePdfToFile(array $configuration, $destination_path_override = NULL);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
OutputHandlerInterface:: |
public | function | Saves merged PDF data to the filesystem. | 1 |