You are here

class ThemeSuggestionsAlterIdEvent in Hook Event Dispatcher 8

Class ThemeSuggestionsAlterIdEvent.

Hierarchy

Expanded class hierarchy of ThemeSuggestionsAlterIdEvent

1 file declares its use of ThemeSuggestionsAlterIdEvent
hook_event_dispatcher.module in ./hook_event_dispatcher.module
Hook event dispatcher module.

File

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

Namespace

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

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