Skip to content

Commit 80cceff

Browse files
committed
Define htmlToPdf in the Hook
This method was always required because it was called by the reporting module assuming that our own implementation of the pdfexport module was the one chosen. Because this behavior exists and our pdfexport module is the only implementation of this hook this is not a breaking change.
1 parent ea33590 commit 80cceff

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

library/Icinga/Application/Hook/PdfexportHook.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,13 @@ abstract public function isSupported();
5757
* @return never
5858
*/
5959
abstract public function streamPdfFromHtml($html, $filename);
60+
61+
/**
62+
* Render the specified HTML to PDF and return the PDF document as a string
63+
*
64+
* @param ValidHtml $html The HTML to render to PDF
65+
*
66+
* @return string
67+
*/
68+
abstract public function htmlToPdf($html);
6069
}

0 commit comments

Comments
 (0)