Skip to content
Snippets Groups Projects
Commit 686fd3b4 authored by Liam Morland's avatar Liam Morland Committed by Liam Morland
Browse files

Issue #3274842: Create hook_fillpdf_populate_pdf_context_alter()

parent 3da83a05
No related branches found
No related tags found
No related merge requests found
...@@ -176,6 +176,11 @@ class HandlePdfController extends ControllerBase { ...@@ -176,6 +176,11 @@ class HandlePdfController extends ControllerBase {
*/ */
public function populatePdf() { public function populatePdf() {
$context = $this->linkManipulator->parseRequest($this->requestStack->getCurrentRequest()); $context = $this->linkManipulator->parseRequest($this->requestStack->getCurrentRequest());
// Create hook_fillpdf_populate_pdf_context_alter().
// Allow modules to alter $context.
$this->moduleHandler()->alter('fillpdf_populate_pdf_context', $context);
$fillpdf_form = FillPdfForm::load($context['fid']); $fillpdf_form = FillPdfForm::load($context['fid']);
$entities = $this->contextManager->loadEntities($context); $entities = $this->contextManager->loadEntities($context);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment