You are here

public function PdfPreviewFormatter::setConfigFactory in PDFPreview 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/Field/FieldFormatter/PDFPreviewFormatter.php \Drupal\pdfpreview\Plugin\Field\FieldFormatter\PDFPreviewFormatter::setConfigFactory()

Sets the config factory.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

File

src/Plugin/Field/FieldFormatter/PdfPreviewFormatter.php, line 65

Class

PdfPreviewFormatter
Plugin implementation of the 'pdfpreview' formatter.

Namespace

Drupal\pdfpreview\Plugin\Field\FieldFormatter

Code

public function setConfigFactory(ConfigFactoryInterface $config_factory) {
  $this->configFactory = $config_factory;
}