class ThemeRegistryAlterEvent in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/core_event_dispatcher/src/Event/Theme/ThemeRegistryAlterEvent.php \Drupal\core_event_dispatcher\Event\Theme\ThemeRegistryAlterEvent
Class ThemeRegistryAlterEvent.
Hierarchy
- class \Drupal\core_event_dispatcher\Event\Theme\ThemeRegistryAlterEvent extends \Symfony\Component\EventDispatcher\Event implements EventInterface
Expanded class hierarchy of ThemeRegistryAlterEvent
2 files declare their use of ThemeRegistryAlterEvent
- core_event_dispatcher.module in modules/
core_event_dispatcher/ core_event_dispatcher.module - Core event dispatcher submodule.
- ThemeRegistryAlterEventTest.php in modules/
core_event_dispatcher/ tests/ src/ Unit/ Theme/ ThemeRegistryAlterEventTest.php
File
- modules/
core_event_dispatcher/ src/ Event/ Theme/ ThemeRegistryAlterEvent.php, line 12
Namespace
Drupal\core_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() : array {
return $this->themeRegistry;
}
/**
* {@inheritdoc}
*/
public function getDispatcherType() : string {
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. |