preprocess_event_dispatcher.module in Hook Event Dispatcher 8.2
Same filename and directory in other branches
Preprocess event dispatcher module.
File
modules/preprocess_event_dispatcher/preprocess_event_dispatcher.moduleView 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
Name | Description |
---|---|
preprocess_event_dispatcher_preprocess | Implements hook_preprocess(). |