You are here

ExamplePreprocessEvent.php in Hook Event Dispatcher 3.x

File

examples/preprocess_example_module/src/Event/ExamplePreprocessEvent.php
View source
<?php

namespace Drupal\preprocess_example_module\Event;

use Drupal\preprocess_event_dispatcher\Event\AbstractPreprocessEvent;

/**
 * Class ExamplePreprocessEvent.
 */
class ExamplePreprocessEvent extends AbstractPreprocessEvent {

  /**
   * {@inheritdoc}
   */
  public static function getHook() : string {
    return 'example';
  }

}

Classes

Namesort descending Description
ExamplePreprocessEvent Class ExamplePreprocessEvent.