You are here

public static function ExamplePreprocessEvent::getHook in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 8 src/Example/preprocess_example_module/src/Event/ExamplePreprocessEvent.php \Drupal\preprocess_example_module\Event\ExamplePreprocessEvent::getHook()
  2. 3.x examples/preprocess_example_module/src/Event/ExamplePreprocessEvent.php \Drupal\preprocess_example_module\Event\ExamplePreprocessEvent::getHook()

Get the hook name.

Return value

string Hook name.

Overrides PreprocessEventInterface::getHook

1 call to ExamplePreprocessEvent::getHook()
ExamplePreprocessEventFactory::getEventHook in examples/preprocess_example_module/src/Factory/ExamplePreprocessEventFactory.php
Get the Event hook name.

File

examples/preprocess_example_module/src/Event/ExamplePreprocessEvent.php, line 15

Class

ExamplePreprocessEvent
Class ExamplePreprocessEvent.

Namespace

Drupal\preprocess_example_module\Event

Code

public static function getHook() : string {
  return 'example';
}