You are here

public function PDFPreviewFormatter::setPdfPreviewGenerator in PDFPreview 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Field/FieldFormatter/PdfPreviewFormatter.php \Drupal\pdfpreview\Plugin\Field\FieldFormatter\PdfPreviewFormatter::setPdfPreviewGenerator()

Sets the PDF Preview generator.

Parameters

\Drupal\pdfpreview\PDFPreviewGenerator $pdf_preview_generator: The PDF Preview generator.

File

src/Plugin/Field/FieldFormatter/PDFPreviewFormatter.php, line 85

Class

PDFPreviewFormatter
Plugin implementation of the 'pdfpreview' formatter.

Namespace

Drupal\pdfpreview\Plugin\Field\FieldFormatter

Code

public function setPdfPreviewGenerator(PDFPreviewGenerator $pdf_preview_generator) {
  $this->pdfPreviewGenerator = $pdf_preview_generator;
}