You are here

public function DocRaptorPDF::__construct in Forena Reports 8

File

forena_pdf/src/FrxPlugin/Document/DocRaptorPDF.php, line 24
PrincePDF

Class

DocRaptorPDF
Provides PDF file exports using Doc Raptor PDF Generation Service

Namespace

Drupal\forena_pdf\FrxPlugin\Document

Code

public function __construct() {
  $this->content_type = 'application/pdf';
  $config = \Drupal::config('forena_pdf.settings');
  $this->docraptor_key = $config
    ->get('docraptor_key');
  $this->docraptor_url = $config
    ->get('docraptor_url');
  $this->docraptor_test = $config
    ->get('docraptor_test');
}