You are here

public function FillPdfActionPluginInterface::execute in FillPDF 8.4

Same name and namespace in other branches
  1. 5.0.x src/Plugin/FillPdfActionPluginInterface.php \Drupal\fillpdf\Plugin\FillPdfActionPluginInterface::execute()

Take action according to the plugin configuration.

This will vary for each action plugin, but it should do something with the PDF (e.g. prepare a download response, save it to a file, etc.) and return an appropriate Response (or subclass thereof, such as RedirectResponse) to the caller.

When you need context info, see if it is passed to you in $this->configuration.

@todo Document exceptions thrown if something goes wrong.

Return value

\Symfony\Component\HttpFoundation\Response A response.

Overrides ExecutableInterface::execute

2 methods override FillPdfActionPluginInterface::execute()
FillPdfDownloadAction::execute in src/Plugin/FillPdfActionPlugin/FillPdfDownloadAction.php
Executes this plugin.
FillPdfSaveAction::execute in src/Plugin/FillPdfActionPlugin/FillPdfSaveAction.php
Executes this plugin.

File

src/Plugin/FillPdfActionPluginInterface.php, line 40

Class

FillPdfActionPluginInterface
Defines an interface for FillPDF action plugins.

Namespace

Drupal\fillpdf\Plugin

Code

public function execute();