You are here

public function ThemeEvent::__construct in Hook Event Dispatcher 8

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

src/Event/Theme/ThemeEvent.php, line 40

Class

ThemeEvent
Class ThemeEvent.

Namespace

Drupal\hook_event_dispatcher\Event\Theme

Code

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