You are here

preprocess_event_dispatcher.module in Hook Event Dispatcher 8.2

Preprocess event dispatcher module.

File

modules/preprocess_event_dispatcher/preprocess_event_dispatcher.module
View source
<?php

/**
 * @file
 * Preprocess event dispatcher module.
 */

/**
 * Implements hook_preprocess().
 *
 * {@inheritdoc}
 */
function preprocess_event_dispatcher_preprocess(array &$variables, string $hook) {

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

Functions