public function PreprocessEventService::__construct in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x 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\ServiceCode
public function __construct(EventDispatcherInterface $dispatcher, PreprocessEventFactoryMapper $mapper) {
$this->dispatcher = $dispatcher;
$this->mapper = $mapper;
}