public function PdfFormat::getHeaderContent in Printer and PDF versions for Drupal 8+ 2.x
Same name and namespace in other branches
- 8 modules/printable_pdf/src/Plugin/PrintableFormat/PdfFormat.php \Drupal\printable_pdf\Plugin\PrintableFormat\PdfFormat::getHeaderContent()
Get the header content.
Return value
string Content of header.
1 call to PdfFormat::getHeaderContent()
- PdfFormat::getResponse in modules/
printable_pdf/ src/ Plugin/ PrintableFormat/ PdfFormat.php - Returns the response object for this format plugin.
File
- modules/
printable_pdf/ src/ Plugin/ PrintableFormat/ PdfFormat.php, line 219
Class
- PdfFormat
- Provides a plugin to display a PDF version of a page.
Namespace
Drupal\printable_pdf\Plugin\PrintableFormatCode
public function getHeaderContent() {
$pdf_header = [
'#theme' => 'printable_pdf_header',
];
return render($pdf_header);
}