You are here

public function EntityPrintPdfBuilder::__construct in Entity Print 8

Constructs a new EntityPrintPdfBuilder.

Parameters

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

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

File

src/EntityPrintPdfBuilder.php, line 37

Class

EntityPrintPdfBuilder

Namespace

Drupal\entity_print

Code

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