You are here

public function PrintableFormatBase::__construct in Printer and PDF versions for Drupal 8+ 8

Same name and namespace in other branches
  1. 2.x src/Plugin/PrintableFormatBase.php \Drupal\printable\Plugin\PrintableFormatBase::__construct()

Parameters

array $configuration: The configuration array.

string $plugin_id: The plugin ID.

array $plugin_definition: The plugin definition.

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

\Drupal\printable\PrintableCssIncludeInterface $printable_css_include: The printable CSS include manager.

\Drupal\printable\LinkExtractor\LinkExtractorInterface $link_extractor: The link extractor.

Overrides PluginBase::__construct

1 call to PrintableFormatBase::__construct()
PdfFormat::__construct in modules/printable_pdf/src/Plugin/PrintableFormat/PdfFormat.php
1 method overrides PrintableFormatBase::__construct()
PdfFormat::__construct in modules/printable_pdf/src/Plugin/PrintableFormat/PdfFormat.php

File

src/Plugin/PrintableFormatBase.php, line 70

Class

PrintableFormatBase
Provides a base class for Filter plugins.

Namespace

Drupal\printable\Plugin

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, ConfigFactoryInterface $config_factory, PrintableCssIncludeInterface $printable_css_include, LinkExtractorInterface $link_extractor) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->configFactory = $config_factory;
  $this->printableCssInclude = $printable_css_include;
  $this->linkExtractor = $link_extractor;
  $this->configuration += $this
    ->defaultConfiguration();
}