You are here

public function PDFPreviewFormatter::setConfigFactory 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::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;
}