Hook action<Controller>SetVariables
| Hook |
action<Controller>SetVariables |
| Locations |
FO |
| Type |
action |
| Origin |
core |
| Aliases |
|
| Description |
This hook is called after a Front Controller has set commonly used variables, available for use in the template. You can add/edit/remove variables from the array passed by reference. After the hook execution, this array of variables is assigned to Smarty. |
Located in
Call of the Hook in the origin file
$modulesVariables = array_merge(
$modulesVariables,
Hook::exec('action' . $this->getControllerName() . 'SetVariables',
[
'templateVars' => &$templateVars,
],
null,
true
)
);