public function PrintableLinksBlock::__construct in Printer and PDF versions for Drupal 8+ 8
Same name in this branch
- 8 src/Plugin/Derivative/PrintableLinksBlock.php \Drupal\printable\Plugin\Derivative\PrintableLinksBlock::__construct()
- 8 src/Plugin/Block/PrintableLinksBlock.php \Drupal\printable\Plugin\Block\PrintableLinksBlock::__construct()
Same name and namespace in other branches
- 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\DerivativeCode
public function __construct(PrintableEntityManagerInterface $printable_entity_manager, TranslationInterface $translation_manager) {
$this->printableEntityManager = $printable_entity_manager;
$this->stringTranslation = $translation_manager;
}