ThemeRegistryAlterEvent.php in Hook Event Dispatcher 8
Namespace
Drupal\hook_event_dispatcher\Event\ThemeFile
src/Event/Theme/ThemeRegistryAlterEvent.phpView source
<?php
namespace Drupal\hook_event_dispatcher\Event\Theme;
use Drupal\hook_event_dispatcher\Event\EventInterface;
use Drupal\hook_event_dispatcher\HookEventDispatcherInterface;
use Symfony\Component\EventDispatcher\Event;
/**
* Class ThemeRegistryAlterEvent.
*/
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;
}
}
Classes
Name | Description |
---|---|
ThemeRegistryAlterEvent | Class ThemeRegistryAlterEvent. |