You are here

class ThemeSuggestionsAlterEvent in Hook Event Dispatcher 3.x

Same name and namespace in other branches
  1. 8.2 modules/core_event_dispatcher/src/Event/Theme/ThemeSuggestionsAlterEvent.php \Drupal\core_event_dispatcher\Event\Theme\ThemeSuggestionsAlterEvent

Class ThemeSuggestionsAlterEvent.

Hierarchy

Expanded class hierarchy of ThemeSuggestionsAlterEvent

2 files declare their use of ThemeSuggestionsAlterEvent
core_event_dispatcher.module in modules/core_event_dispatcher/core_event_dispatcher.module
Core event dispatcher submodule.
ThemeSuggestionsAlterEventTest.php in modules/core_event_dispatcher/tests/src/Unit/Theme/ThemeSuggestionsAlterEventTest.php

File

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

Namespace

Drupal\core_event_dispatcher\Event\Theme
View source
class ThemeSuggestionsAlterEvent extends AbstractThemeSuggestionsEvent {

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

}

Members

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