You are here

public static function HtmlPreprocessEvent::getHook in Hook Event Dispatcher 8

Get the hook name.

Return value

string Hook name.

Overrides PreprocessEventInterface::getHook

2 calls to HtmlPreprocessEvent::getHook()
HtmlPreprocessEventFactory::getEventHook in src/Event/Preprocess/Factory/HtmlPreprocessEventFactory.php
Get the Event hook name.
PreprocessEventPassTest::testOverwritingDefaultFactory in tests/src/Unit/Preprocess/PreprocessEventPassTest.php
Test if we can overwrite a default factory.

File

src/Event/Preprocess/HtmlPreprocessEvent.php, line 13

Class

HtmlPreprocessEvent
Class HtmlPreprocessEvent.

Namespace

Drupal\hook_event_dispatcher\Event\Preprocess

Code

public static function getHook() {
  return 'html';
}