You are here

public function ViewsPdfBase::setDefaultPageTemplate in Views PDF 8

File

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

Class

ViewsPdfBase
The main class to generate the PDF.

Namespace

Drupal\views_pdf

Code

public function setDefaultPageTemplate($path, $key, $pageNumbering = 'main') {
  $this->defaultPageTemplateFiles[$key] = [
    'path' => $path,
    'numbering' => $pageNumbering,
  ];
}