You are here

final class UsernamePreprocessEvent in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x modules/preprocess_event_dispatcher/src/Event/UsernamePreprocessEvent.php \Drupal\preprocess_event_dispatcher\Event\UsernamePreprocessEvent

Class UsernamePreprocessEvent.

Hierarchy

Expanded class hierarchy of UsernamePreprocessEvent

2 files declare their use of UsernamePreprocessEvent
OtherEventVariablesTest.php in modules/preprocess_event_dispatcher/tests/src/Unit/OtherEventVariablesTest.php
UsernamePreprocessEventFactory.php in modules/preprocess_event_dispatcher/src/Factory/UsernamePreprocessEventFactory.php

File

modules/preprocess_event_dispatcher/src/Event/UsernamePreprocessEvent.php, line 8

Namespace

Drupal\preprocess_event_dispatcher\Event
View source
final class UsernamePreprocessEvent extends AbstractPreprocessEvent {

  /**
   * {@inheritdoc}
   */
  public static function getHook() : string {
    return 'username';
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AbstractPreprocessEvent::$variables protected property Event variables.
AbstractPreprocessEvent::getVariables public function Get the variables. Overrides PreprocessEventInterface::getVariables
AbstractPreprocessEvent::name public static function Get the Event name. Overrides PreprocessEventInterface::name 1
AbstractPreprocessEvent::__construct public function PreprocessEvent constructor.
PreprocessEventInterface::DISPATCH_NAME_PREFIX public constant
UsernamePreprocessEvent::getHook public static function Get the hook name. Overrides PreprocessEventInterface::getHook