You are here

class ThemeRegistryAlterEvent in Hook Event Dispatcher 8

Class ThemeRegistryAlterEvent.

Hierarchy

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\Theme
View 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

Namesort descending Modifiers Type Description Overrides
ThemeRegistryAlterEvent::$themeRegistry private property The entire cache of theme registry information, post-processing.
ThemeRegistryAlterEvent::getDispatcherType public function Get the dispatcher type. Overrides EventInterface::getDispatcherType
ThemeRegistryAlterEvent::getThemeRegistry public function Get theme registry.
ThemeRegistryAlterEvent::__construct public function ThemeRegistryAlterEvent constructor.