class ThemeSuggestionsAlterEvent in Hook Event Dispatcher 8
Class ThemeSuggestionsAlterEvent.
Hierarchy
- class \Drupal\hook_event_dispatcher\Event\Theme\BaseThemeSuggestionsEvent extends \Symfony\Component\EventDispatcher\Event implements EventInterface
- class \Drupal\hook_event_dispatcher\Event\Theme\ThemeSuggestionsAlterEvent
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\ThemeView source
class ThemeSuggestionsAlterEvent extends BaseThemeSuggestionsEvent {
/**
* Returns the hook dispatcher type.
*
* @return string
* Dispatcher type.
*/
public function getDispatcherType() {
return HookEventDispatcherInterface::THEME_SUGGESTIONS_ALTER;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BaseThemeSuggestionsEvent:: |
protected | property | Hook name. | |
BaseThemeSuggestionsEvent:: |
protected | property | Array of suggestions. | |
BaseThemeSuggestionsEvent:: |
protected | property | Variables. | |
BaseThemeSuggestionsEvent:: |
public | function | Get hook. | |
BaseThemeSuggestionsEvent:: |
public | function | Get suggestions. | |
BaseThemeSuggestionsEvent:: |
public | function | Get variables. | |
BaseThemeSuggestionsEvent:: |
public | function | Set suggestions. | |
BaseThemeSuggestionsEvent:: |
public | function | BaseThemeSuggestionsEvent constructor. | |
ThemeSuggestionsAlterEvent:: |
public | function |
Returns the hook dispatcher type. Overrides EventInterface:: |