final class UsernamePreprocessEventFactory in Hook Event Dispatcher 8
Class UsernamePreprocessEventFactory.
Hierarchy
- class \Drupal\hook_event_dispatcher\Event\Preprocess\Factory\UsernamePreprocessEventFactory implements PreprocessEventFactoryInterface
 
Expanded class hierarchy of UsernamePreprocessEventFactory
1 string reference to 'UsernamePreprocessEventFactory'
1 service uses UsernamePreprocessEventFactory
File
- src/
Event/ Preprocess/ Factory/ UsernamePreprocessEventFactory.php, line 11  
Namespace
Drupal\hook_event_dispatcher\Event\Preprocess\FactoryView source
final class UsernamePreprocessEventFactory implements PreprocessEventFactoryInterface {
  /**
   * {@inheritdoc}
   */
  public function createEvent(array &$variables) {
    return new UsernamePreprocessEvent(new UsernameEventVariables($variables));
  }
  /**
   * {@inheritdoc}
   */
  public function getEventHook() {
    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:: |