You are here

class ThemeSuggestionsAlterIdEvent in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x modules/core_event_dispatcher/src/Event/Theme/ThemeSuggestionsAlterIdEvent.php \Drupal\core_event_dispatcher\Event\Theme\ThemeSuggestionsAlterIdEvent

Class ThemeSuggestionsAlterIdEvent.

Hierarchy

Expanded class hierarchy of ThemeSuggestionsAlterIdEvent

1 file declares its use of ThemeSuggestionsAlterIdEvent
core_event_dispatcher.module in modules/core_event_dispatcher/core_event_dispatcher.module
Core event dispatcher submodule.

File

modules/core_event_dispatcher/src/Event/Theme/ThemeSuggestionsAlterIdEvent.php, line 8

Namespace

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

  /**
   * Returns the hook dispatcher type.
   *
   * @return string
   *   Dispatcher type.
   */
  public function getDispatcherType() : string {
    return 'hook_event_dispatcher.theme.suggestions_' . $this
      ->getHook() . '_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.
ThemeSuggestionsAlterIdEvent::getDispatcherType public function Returns the hook dispatcher type. Overrides EventInterface::getDispatcherType