public function TemplatePreprocessDefaultVariablesAlterEvent::__construct in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x 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\ThemeCode
public function __construct(array &$variables) {
$this->variables =& $variables;
}