class ThemeRegistryAlterEvent in Hook Event Dispatcher 8
Class ThemeRegistryAlterEvent.
Hierarchy
- class \Drupal\hook_event_dispatcher\Event\Theme\ThemeRegistryAlterEvent extends \Symfony\Component\EventDispatcher\Event implements EventInterface
Expanded class hierarchy of ThemeRegistryAlterEvent
2 files declare their use of ThemeRegistryAlterEvent
- hook_event_dispatcher.module in ./
hook_event_dispatcher.module - Hook event dispatcher module.
- ThemeRegistryAlterEventTest.php in tests/
src/ Unit/ Theme/ ThemeRegistryAlterEventTest.php
File
- src/
Event/ Theme/ ThemeRegistryAlterEvent.php, line 12
Namespace
Drupal\hook_event_dispatcher\Event\ThemeView source
class ThemeRegistryAlterEvent extends Event implements EventInterface {
/**
* The entire cache of theme registry information, post-processing.
*
* @var array
*/
private $themeRegistry;
/**
* ThemeRegistryAlterEvent constructor.
*
* @param array &$themeRegistry
* The entire cache of theme registry information, post-processing.
*/
public function __construct(array &$themeRegistry) {
$this->themeRegistry =& $themeRegistry;
}
/**
* Get theme registry.
*
* @return array
* The theme registry.
*/
public function &getThemeRegistry() {
return $this->themeRegistry;
}
/**
* {@inheritdoc}
*/
public function getDispatcherType() {
return HookEventDispatcherInterface::THEME_REGISTRY_ALTER;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ThemeRegistryAlterEvent:: |
private | property | The entire cache of theme registry information, post-processing. | |
ThemeRegistryAlterEvent:: |
public | function |
Get the dispatcher type. Overrides EventInterface:: |
|
ThemeRegistryAlterEvent:: |
public | function | Get theme registry. | |
ThemeRegistryAlterEvent:: |
public | function | ThemeRegistryAlterEvent constructor. |