ThemeRegistryAlterEvent.php in Hook Event Dispatcher 3.x
File
modules/core_event_dispatcher/src/Event/Theme/ThemeRegistryAlterEvent.php
View source
<?php
namespace Drupal\core_event_dispatcher\Event\Theme;
use Drupal\hook_event_dispatcher\Event\EventInterface;
use Drupal\hook_event_dispatcher\HookEventDispatcherInterface;
use Symfony\Component\EventDispatcher\Event;
class ThemeRegistryAlterEvent extends Event implements EventInterface {
private $themeRegistry;
public function __construct(array &$themeRegistry) {
$this->themeRegistry =& $themeRegistry;
}
public function &getThemeRegistry() : array {
return $this->themeRegistry;
}
public function getDispatcherType() : string {
return HookEventDispatcherInterface::THEME_REGISTRY_ALTER;
}
}