You are here

public function TemplatePreprocessDefaultVariablesAlterEvent::__construct in Hook Event Dispatcher 3.x

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

TemplatePreprocessDefaultVariablesAlterEvent constructor.

Parameters

array $variables: The associative array of default template variables, as set up by _template_preprocess_default_variables(). Passed by reference.

See also

hook_template_preprocess_default_variables_alter()

File

modules/core_event_dispatcher/src/Event/Theme/TemplatePreprocessDefaultVariablesAlterEvent.php, line 30

Class

TemplatePreprocessDefaultVariablesAlterEvent
Class TemplatePreprocessDefaultVariablesAlterEvent.

Namespace

Drupal\core_event_dispatcher\Event\Theme

Code

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