You are here

public function TemplatePreprocessDefaultVariablesAlterEvent::__construct in Hook Event Dispatcher 8

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

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

Class

TemplatePreprocessDefaultVariablesAlterEvent
Class TemplatePreprocessDefaultVariablesAlterEvent.

Namespace

Drupal\hook_event_dispatcher\Event\Theme

Code

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