You are here

class ExamplePreprocessEvent in Hook Event Dispatcher 8

Same name and namespace in other branches
  1. 8.2 examples/preprocess_example_module/src/Event/ExamplePreprocessEvent.php \Drupal\preprocess_example_module\Event\ExamplePreprocessEvent
  2. 3.x examples/preprocess_example_module/src/Event/ExamplePreprocessEvent.php \Drupal\preprocess_example_module\Event\ExamplePreprocessEvent

Class ExamplePreprocessEvent.

Hierarchy

Expanded class hierarchy of ExamplePreprocessEvent

1 file declares its use of ExamplePreprocessEvent
ExamplePreprocessEventFactory.php in src/Example/preprocess_example_module/src/Event/Factory/ExamplePreprocessEventFactory.php

File

src/Example/preprocess_example_module/src/Event/ExamplePreprocessEvent.php, line 10

Namespace

Drupal\preprocess_example_module\Event
View source
class ExamplePreprocessEvent extends AbstractPreprocessEvent {

  /**
   * {@inheritdoc}
   */
  public static function getHook() {
    return 'example';
  }

}

Members

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