You are here

public function PostRenderSubscriber::__construct in Entity Print 8

Same name and namespace in other branches
  1. 8.2 src/EventSubscriber/PostRenderSubscriber.php \Drupal\entity_print\EventSubscriber\PostRenderSubscriber::__construct()

PostRenderSubscriber constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

File

src/EventSubscriber/PostRenderSubscriber.php, line 40

Class

PostRenderSubscriber
The PostRenderSubscriber class.

Namespace

Drupal\entity_print\EventSubscriber

Code

public function __construct(ConfigFactoryInterface $config_factory, RequestStack $request_stack) {
  $this->configFactory = $config_factory;
  $this->requestStack = $request_stack;
}