You are here

public function ViewsPdfBase::__construct in Views PDF 8

This method overrides the parent constructor method. this is need to reset the default values.

File

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

Class

ViewsPdfBase
The main class to generate the PDF.

Namespace

Drupal\views_pdf

Code

public function __construct($orientation = 'P', $unit = 'mm', $format = 'A4', $unicode = TRUE, $encoding = 'UTF-8', $diskcache = FALSE) {
  parent::__construct($orientation, $unit, $format, $unicode, $encoding, $diskcache);
  $this->defaultOrientation = $orientation;
  $this->defaultFormat = $format;
}