You are here

class ThemeSuggestionsAlterEvent in Hook Event Dispatcher 8

Class ThemeSuggestionsAlterEvent.

Hierarchy

Expanded class hierarchy of ThemeSuggestionsAlterEvent

2 files declare their use of ThemeSuggestionsAlterEvent
hook_event_dispatcher.module in ./hook_event_dispatcher.module
Hook event dispatcher module.
ThemeSuggestionsAlterEventTest.php in tests/src/Unit/Theme/ThemeSuggestionsAlterEventTest.php

File

src/Event/Theme/ThemeSuggestionsAlterEvent.php, line 10

Namespace

Drupal\hook_event_dispatcher\Event\Theme
View source
class ThemeSuggestionsAlterEvent extends BaseThemeSuggestionsEvent {

  /**
   * Returns the hook dispatcher type.
   *
   * @return string
   *   Dispatcher type.
   */
  public function getDispatcherType() {
    return HookEventDispatcherInterface::THEME_SUGGESTIONS_ALTER;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
BaseThemeSuggestionsEvent::$hook protected property Hook name.
BaseThemeSuggestionsEvent::$suggestions protected property Array of suggestions.
BaseThemeSuggestionsEvent::$variables protected property Variables.
BaseThemeSuggestionsEvent::getHook public function Get hook.
BaseThemeSuggestionsEvent::getSuggestions public function Get suggestions.
BaseThemeSuggestionsEvent::getVariables public function Get variables.
BaseThemeSuggestionsEvent::setSuggestions public function Set suggestions.
BaseThemeSuggestionsEvent::__construct public function BaseThemeSuggestionsEvent constructor.
ThemeSuggestionsAlterEvent::getDispatcherType public function Returns the hook dispatcher type. Overrides EventInterface::getDispatcherType