public static function UsernamePreprocessEvent::getHook in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/preprocess_event_dispatcher/src/Event/UsernamePreprocessEvent.php \Drupal\preprocess_event_dispatcher\Event\UsernamePreprocessEvent::getHook()
Get the hook name.
Return value
string Hook name.
Overrides PreprocessEventInterface::getHook
1 call to UsernamePreprocessEvent::getHook()
- UsernamePreprocessEventFactory::getEventHook in modules/
preprocess_event_dispatcher/ src/ Factory/ UsernamePreprocessEventFactory.php - Get the Event hook name.
File
- modules/
preprocess_event_dispatcher/ src/ Event/ UsernamePreprocessEvent.php, line 13
Class
- UsernamePreprocessEvent
- Class UsernamePreprocessEvent.
Namespace
Drupal\preprocess_event_dispatcher\EventCode
public static function getHook() : string {
return 'username';
}