You are here

public function PreprocessEventServiceInterface::createAndDispatchKnownEvents in Hook Event Dispatcher 3.x

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

Create and dispatch the event.

Parameters

string $hook: The hook name.

array $variables: Variables.

1 method overrides PreprocessEventServiceInterface::createAndDispatchKnownEvents()
PreprocessEventService::createAndDispatchKnownEvents in modules/preprocess_event_dispatcher/src/Service/PreprocessEventService.php
Create and dispatch the event.

File

modules/preprocess_event_dispatcher/src/Service/PreprocessEventServiceInterface.php, line 18

Class

PreprocessEventServiceInterface
Interface PreprocessEventServiceInterface.

Namespace

Drupal\preprocess_event_dispatcher\Service

Code

public function createAndDispatchKnownEvents(string $hook, array &$variables) : void;