You are here

public function AbstractThemeSuggestionsEvent::getHook in Hook Event Dispatcher 3.x

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

Get hook.

Return value

string Name of the hook.

1 call to AbstractThemeSuggestionsEvent::getHook()
ThemeSuggestionsAlterIdEvent::getDispatcherType in modules/core_event_dispatcher/src/Event/Theme/ThemeSuggestionsAlterIdEvent.php
Returns the hook dispatcher type.

File

modules/core_event_dispatcher/src/Event/Theme/AbstractThemeSuggestionsEvent.php, line 74

Class

AbstractThemeSuggestionsEvent
Class AbstractThemeSuggestionsEvent.

Namespace

Drupal\core_event_dispatcher\Event\Theme

Code

public function getHook() : string {
  return $this->hook;
}