Hook action<Controller>SetVariablesBefore

Informations

Hook action<Controller>SetVariablesBefore
Locations
FO
Type action
Origin core
Aliases
Description This hook is called before a Front Controller starts to set commonly used variables, that are going to be assigned to Smarty. You can add/edit/remove variables from the array passed by reference..

Located in

Origin File
core classes/controller/FrontController.php

Call of the Hook in the origin file

Hook::exec('action' . $this->getControllerName() . 'SetVariablesBefore',
    [
        'templateVars' => &$templateVars,
        'cart' => $cart,
    ]
);