You are here

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

Same name in this branch
  1. 8 src/Plugin/Derivative/PrintableLinksBlock.php \Drupal\printable\Plugin\Derivative\PrintableLinksBlock::__construct()
  2. 8 src/Plugin/Block/PrintableLinksBlock.php \Drupal\printable\Plugin\Block\PrintableLinksBlock::__construct()
Same name and namespace in other branches
  1. 2.x src/Plugin/Derivative/PrintableLinksBlock.php \Drupal\printable\Plugin\Derivative\PrintableLinksBlock::__construct()

Construct a new printable format links block.

Parameters

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

\Drupal\Core\StringTranslation\TranslationInterface $translation_manager: The translation manager.

File

src/Plugin/Derivative/PrintableLinksBlock.php, line 34

Class

PrintableLinksBlock
Local tasks plugin derivative to provide a tab for each printable format.

Namespace

Drupal\printable\Plugin\Derivative

Code

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