public static function ExamplePreprocessEvent::getHook in Hook Event Dispatcher 8
Same name and namespace in other branches
- 8.2 examples/preprocess_example_module/src/Event/ExamplePreprocessEvent.php \Drupal\preprocess_example_module\Event\ExamplePreprocessEvent::getHook()
- 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 src/
Example/ preprocess_example_module/ src/ Event/ Factory/ ExamplePreprocessEventFactory.php - Get the Event hook name.
File
- src/
Example/ preprocess_example_module/ src/ Event/ ExamplePreprocessEvent.php, line 15
Class
- ExamplePreprocessEvent
- Class ExamplePreprocessEvent.
Namespace
Drupal\preprocess_example_module\EventCode
public static function getHook() {
return 'example';
}