Hook action<Controller>SetVariables

Informations

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

Origin File
core classes/controller/FrontController.php

Call of the Hook in the origin file

$modulesVariables = array_merge(
    $modulesVariables,
    Hook::exec('action' . $this->getControllerName() . 'SetVariables',
        [
            'templateVars' => &$templateVars,
        ],
        null,
        true
    )
);