You are here

public function ThemeEvent::__construct in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x modules/core_event_dispatcher/src/Event/Theme/ThemeEvent.php \Drupal\core_event_dispatcher\Event\Theme\ThemeEvent::__construct()

ThemeEvent constructor.

Parameters

array $existing: An array of existing implementations that may be used for override purposes. This is primarily useful for themes that may wish to examine existing implementations to extract data (such as arguments) so that it may properly register its own, higher priority implementations.

See also

\hook_theme()

File

modules/core_event_dispatcher/src/Event/Theme/ThemeEvent.php, line 39

Class

ThemeEvent
Class ThemeEvent.

Namespace

Drupal\core_event_dispatcher\Event\Theme

Code

public function __construct(array $existing) {
  $this->existing = $existing;
}