Hook sendMailAlterTemplateVars

Informations

Alter template vars on the fly This hook is called when Mail::send() is called
Hook sendMailAlterTemplateVars
Locations
FO
Type
Origin core
Aliases

Located in

Origin File
core classes/Mail.php

Call of the Hook in the origin file

Hook::exec(
            'sendMailAlterTemplateVars',
            [
                'template' => $template,
                'template_vars' => &$templateVars,
            ]
        )