You are here

public function PreprocessEventService::__construct in Hook Event Dispatcher 3.x

Same name and namespace in other branches
  1. 8.2 modules/preprocess_event_dispatcher/src/Service/PreprocessEventService.php \Drupal\preprocess_event_dispatcher\Service\PreprocessEventService::__construct()

PreprocessEventService constructor.

Parameters

\Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher: Event dispatcher.

PreprocessEventFactoryMapper $mapper: Factory mapper.

File

modules/preprocess_event_dispatcher/src/Service/PreprocessEventService.php, line 35

Class

PreprocessEventService
Class PreprocessEventService.

Namespace

Drupal\preprocess_event_dispatcher\Service

Code

public function __construct(EventDispatcherInterface $dispatcher, PreprocessEventFactoryMapper $mapper) {
  $this->dispatcher = $dispatcher;
  $this->mapper = $mapper;
}