You are here

public function AbstractThemeSuggestionsEvent::__construct in Hook Event Dispatcher 8.2

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

AbstractThemeSuggestionsEvent constructor.

Parameters

array $suggestions: Suggestions.

array $variables: Variables.

string $hook: Hook name.

File

modules/core_event_dispatcher/src/Event/Theme/AbstractThemeSuggestionsEvent.php, line 42

Class

AbstractThemeSuggestionsEvent
Class AbstractThemeSuggestionsEvent.

Namespace

Drupal\core_event_dispatcher\Event\Theme

Code

public function __construct(array &$suggestions, array $variables, string $hook) {
  $this->suggestions =& $suggestions;
  $this->variables = $variables;
  $this->hook = $hook;
}