public function PDFPreviewFormatter::setImageFactory in PDFPreview 8
Same name and namespace in other branches
- 2.0.x src/Plugin/Field/FieldFormatter/PdfPreviewFormatter.php \Drupal\pdfpreview\Plugin\Field\FieldFormatter\PdfPreviewFormatter::setImageFactory()
Sets the image factory.
Parameters
\Drupal\Core\Image\ImageFactory $image_factory: The image factory.
File
- src/
Plugin/ Field/ FieldFormatter/ PDFPreviewFormatter.php, line 75
Class
- PDFPreviewFormatter
- Plugin implementation of the 'pdfpreview' formatter.
Namespace
Drupal\pdfpreview\Plugin\Field\FieldFormatterCode
public function setImageFactory(ImageFactory $image_factory) {
$this->imageFactory = $image_factory;
}