You are here

function hook_event_dispatcher_preprocess in Hook Event Dispatcher 8

Implements hook_preprocess().

File

./hook_event_dispatcher.module, line 319
Hook event dispatcher module.

Code

function hook_event_dispatcher_preprocess(&$variables, $hook) {

  /** @var \Drupal\hook_event_dispatcher\Service\PreprocessEventService $service */
  $service = \Drupal::service('preprocess_event.service');
  $service
    ->createAndDispatchKnownEvents($hook, $variables);
}