You are here

public function PreprocessEventService::__construct in Hook Event Dispatcher 8

PreprocessEventService constructor.

Parameters

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

PreprocessEventFactoryMapper $mapper: Factory mapper.

File

src/Service/PreprocessEventService.php, line 35

Class

PreprocessEventService
Class PreprocessEventService.

Namespace

Drupal\hook_event_dispatcher\Service

Code

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