You are here

public function PDFPreviewGenerator::__construct in PDFPreview 8

Same name and namespace in other branches
  1. 2.0.x src/PdfPreviewGenerator.php \Drupal\pdfpreview\PdfPreviewGenerator::__construct()

Constructs a PDFPreviewGenerator object.

Parameters

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

\Drupal\Core\File\FileSystemInterface $file_system: The file system service.

\Drupal\Component\Transliteration\TransliterationInterface $transliteration: The transliteration service.

\Drupal\Core\ImageToolkit\ImageToolkitManager $toolkit_manager: The image toolkit plugin manager service..

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager service.

File

src/PDFPreviewGenerator.php, line 66

Class

PDFPreviewGenerator
Generates PDF Previews.

Namespace

Drupal\pdfpreview

Code

public function __construct(ConfigFactoryInterface $config_factory, FileSystemInterface $file_system, TransliterationInterface $transliteration, ImageToolkitManager $toolkit_manager, LanguageManagerInterface $language_manager) {
  $this->configFactory = $config_factory;
  $this->fileSystem = $file_system;
  $this->transliteration = $transliteration;
  $this->toolkitManager = $toolkit_manager;
  $this->languageManager = $language_manager;
}