You are here

public function ViewsPdfBase::setHeaderFooter in Views PDF 8

Sets the current header and footer of the page.

File

src/ViewsPdfBase.php, line 1001
Contains \Drupal\views_pdf\ViewsPdfTemplate.

Class

ViewsPdfBase
The main class to generate the PDF.

Namespace

Drupal\views_pdf

Code

public function setHeaderFooter($record, $options, $view) {

  //if ($this->getPage() > 0 && !isset($this->headerFooterData[$this->getPage()])) {
  $this->headerFooterData[$this
    ->getPage()] = $record;

  //}
  $this->headerFooterOptions = $options;
  $this->view =& $view;
}