public function GeneratePdf::__construct in PDF using mPDF 8
Same name and namespace in other branches
- 8.2 src/Controller/GeneratePdf.php \Drupal\pdf_using_mpdf\Controller\GeneratePdf::__construct()
GeneratePdf constructor.
Parameters
\Drupal\pdf_using_mpdf\Conversion\ConvertToPdf $convert: Convert to PDF service.
\Drupal\Core\Entity\EntityTypeManager $entityTypeManager: The entity type manager.
\Drupal\Core\Render\Renderer $renderer: The renderer service.
\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The configuration factory service.
File
- src/
Controller/ GeneratePdf.php, line 75
Class
- GeneratePdf
- Class GeneratePdf.
Namespace
Drupal\pdf_using_mpdf\ControllerCode
public function __construct(ConvertToPdf $convert, EntityTypeManager $entityTypeManager, Renderer $renderer, ConfigFactoryInterface $configFactory) {
$this->convert = $convert;
$this->entityTypeManager = $entityTypeManager;
$this->renderer = $renderer;
$this->configFactory = $configFactory;
}