You are here

public function ExamplePreprocessEventFactory::getEventHook in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x examples/preprocess_example_module/src/Factory/ExamplePreprocessEventFactory.php \Drupal\preprocess_example_module\Factory\ExamplePreprocessEventFactory::getEventHook()

Get the Event hook name.

Return value

string The hook name.

Overrides PreprocessEventFactoryInterface::getEventHook

File

examples/preprocess_example_module/src/Factory/ExamplePreprocessEventFactory.php, line 33

Class

ExamplePreprocessEventFactory
Class ExamplePreprocessEventFactory.

Namespace

Drupal\preprocess_example_module\Factory

Code

public function getEventHook() : string {
  return ExamplePreprocessEvent::getHook();
}