public function PhpWkhtmlToPdf::setFooterText in Entity Print 8.2
Sets the footer text.
Parameters
string $text: The plain text to add to the footer.
string $alignment: One of the align constants.
Return value
$this The pdf engine.
Overrides AlignableHeaderFooterInterface::setFooterText
File
- src/
Plugin/ EntityPrint/ PrintEngine/ PhpWkhtmlToPdf.php, line 300
Class
- PhpWkhtmlToPdf
- PHP wkhtmltopdf plugin.
Namespace
Drupal\entity_print\Plugin\EntityPrint\PrintEngineCode
public function setFooterText($text, $alignment) {
$this->pdf
->setOptions([
'footer-' . $alignment => $text,
]);
return $this;
}