public static function ExamplePreprocessEvent::getHook in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 examples/preprocess_example_module/src/Event/ExamplePreprocessEvent.php \Drupal\preprocess_example_module\Event\ExamplePreprocessEvent::getHook()
- 8 src/Example/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\EventCode
public static function getHook() : string {
return 'example';
}