final class UsernamePreprocessEventFactory in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/preprocess_event_dispatcher/src/Factory/UsernamePreprocessEventFactory.php \Drupal\preprocess_event_dispatcher\Factory\UsernamePreprocessEventFactory
Class UsernamePreprocessEventFactory.
Hierarchy
- class \Drupal\preprocess_event_dispatcher\Factory\UsernamePreprocessEventFactory implements PreprocessEventFactoryInterface
Expanded class hierarchy of UsernamePreprocessEventFactory
1 string reference to 'UsernamePreprocessEventFactory'
- preprocess_event_dispatcher.services.yml in modules/
preprocess_event_dispatcher/ preprocess_event_dispatcher.services.yml - modules/preprocess_event_dispatcher/preprocess_event_dispatcher.services.yml
1 service uses UsernamePreprocessEventFactory
- preprocess_event.factory.username in modules/
preprocess_event_dispatcher/ preprocess_event_dispatcher.services.yml - Drupal\preprocess_event_dispatcher\Factory\UsernamePreprocessEventFactory
File
- modules/
preprocess_event_dispatcher/ src/ Factory/ UsernamePreprocessEventFactory.php, line 12
Namespace
Drupal\preprocess_event_dispatcher\FactoryView source
final class UsernamePreprocessEventFactory implements PreprocessEventFactoryInterface {
/**
* {@inheritdoc}
*/
public function createEvent(array &$variables) : AbstractPreprocessEvent {
return new UsernamePreprocessEvent(new UsernameEventVariables($variables));
}
/**
* {@inheritdoc}
*/
public function getEventHook() : string {
return UsernamePreprocessEvent::getHook();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UsernamePreprocessEventFactory:: |
public | function |
Create the PreprocessEvent with the Variables object embedded. Overrides PreprocessEventFactoryInterface:: |
|
UsernamePreprocessEventFactory:: |
public | function |
Get the Event hook name. Overrides PreprocessEventFactoryInterface:: |