You are here

public function PrintBuilder::__construct in Entity Print 8.2

Constructs a new EntityPrintPrintBuilder.

Parameters

\Drupal\entity_print\Renderer\RendererFactoryInterface $renderer_factory: The Renderer factory.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.

File

src/PrintBuilder.php, line 46

Class

PrintBuilder
The print builder service.

Namespace

Drupal\entity_print

Code

public function __construct(RendererFactoryInterface $renderer_factory, EventDispatcherInterface $event_dispatcher, TranslationInterface $string_translation) {
  $this->rendererFactory = $renderer_factory;
  $this->dispatcher = $event_dispatcher;
  $this->stringTranslation = $string_translation;
}