public function PdfPreviewFormatter::setImageFactory in PDFPreview 2.0.x
Same name and namespace in other branches
- 8 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;
}