You are here

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

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

Constructs a printable RouteSubscriber object.

Parameters

\Drupal\printable\PrintableEntityManagerInterface $printable_entity_manager: The printable entity manager service.

File

src/Routing/RouteSubscriber.php, line 29

Class

RouteSubscriber
Defines a route subscriber to generate print route for all content entities.

Namespace

Drupal\printable\Routing

Code

public function __construct(PrintableEntityManagerInterface $printable_entity_manager) {
  $this->printableEntityManager = $printable_entity_manager;
}