public function TestPdfEngine::addPage in Entity Print 8
Add a string of HTML to a new page.
Parameters
string $content: The string of HTML to add to a new page.
Return value
$this
Overrides PdfEngineInterface::addPage
File
- tests/
modules/ entity_print_test/ src/ Plugin/ EntityPrint/ PdfEngine/ TestPdfEngine.php, line 96
Class
- TestPdfEngine
- Plugin annotation @PdfEngine( id = "testpdfengine", label= @Translation("Test PDF Engine") )
Namespace
Drupal\entity_print_test\Plugin\EntityPrint\PdfEngineCode
public function addPage($content) {
$this->html = $content;
}