You are here

public static function PreprocessEventInterface::getHook in Hook Event Dispatcher 3.x

Same name and namespace in other branches
  1. 8.2 modules/preprocess_event_dispatcher/src/Event/PreprocessEventInterface.php \Drupal\preprocess_event_dispatcher\Event\PreprocessEventInterface::getHook()

Get the hook name.

Return value

string Hook name.

1 call to PreprocessEventInterface::getHook()
AbstractPreprocessEvent::name in modules/preprocess_event_dispatcher/src/Event/AbstractPreprocessEvent.php
Get the Event name.
18 methods override PreprocessEventInterface::getHook()
BlockPreprocessEvent::getHook in modules/preprocess_event_dispatcher/src/Event/BlockPreprocessEvent.php
Get the hook name.
CommentPreprocessEvent::getHook in modules/preprocess_event_dispatcher/src/Event/CommentPreprocessEvent.php
Get the hook name.
EckEntityPreprocessEvent::getHook in modules/preprocess_event_dispatcher/src/Event/EckEntityPreprocessEvent.php
Get the hook name.
ExamplePreprocessEvent::getHook in examples/preprocess_example_module/src/Event/ExamplePreprocessEvent.php
Get the hook name.
FakePreprocessEvent::getHook in modules/preprocess_event_dispatcher/tests/src/Unit/Helpers/FakePreprocessEvent.php
Get the hook name.

... See full list

File

modules/preprocess_event_dispatcher/src/Event/PreprocessEventInterface.php, line 20

Class

PreprocessEventInterface
Interface PreprocessEventInterface.

Namespace

Drupal\preprocess_event_dispatcher\Event

Code

public static function getHook() : string;