You are here

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

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

Constructs a \Drupal\printable\Controller\PrintableController object.

Parameters

\Drupal\printable\PrintableFormatPluginManager $printable_format_manager: The printable format plugin manager.

\Drupal\Core\Config\ConfigFactory $config_factory: The config factory class instance.

File

src/Controller/PrintableController.php, line 40

Class

PrintableController
Controller to display an entity in a particular printable format.

Namespace

Drupal\printable\Controller

Code

public function __construct(PrintableFormatPluginManager $printable_format_manager, ConfigFactory $config_factory) {
  $this->printableFormatManager = $printable_format_manager;
  $this->configFactory = $config_factory;
}