Hook | actionFrontControllerSetVariables |
---|---|
Locations | FO |
Type | action |
Origin | core |
Aliases |
This hook has an $array_return
parameter set to true
(module output will be set by name in an array, see explaination here).
Origin | File |
---|---|
core | classes/controller/FrontController.php |
<?php
array(
'templateVars' => &(array)
);
```php
<?php
public function hookActionFrontControllerSetVariables()
{
return [
'your_variable_name' => 'Your variable value',
];
}
Hook::exec(
'actionFrontControllerSetVariables',
[
'templateVars' => &$templateVars,
],
null,
true
)