You are here

public function AlignableHeaderFooterInterface::setHeaderText in Entity Print 8.2

Sets the header text.

Parameters

string $text: The plain text to add to the header.

string $alignment: One of the align constants.

Return value

$this The pdf engine.

1 method overrides AlignableHeaderFooterInterface::setHeaderText()
PhpWkhtmlToPdf::setHeaderText in src/Plugin/EntityPrint/PrintEngine/PhpWkhtmlToPdf.php
Sets the header text.

File

src/Plugin/EntityPrint/PrintEngine/AlignableHeaderFooterInterface.php, line 36

Class

AlignableHeaderFooterInterface
An interface for print engines that support a header and footer.

Namespace

Drupal\entity_print\Plugin\EntityPrint\PrintEngine

Code

public function setHeaderText($text, $alignment);