Hook | actionBuildMailLayoutVariables |
---|---|
Locations | FO |
Type | action |
Origin | core |
Aliases | |
Description | This hook allows to change the variables used when an email layout is rendered |
Origin | File |
---|---|
core | src/Core/MailTemplate/Layout/LayoutVariablesBuilder.php |
dispatchWithParameters(
LayoutVariablesBuilderInterface::BUILD_MAIL_LAYOUT_VARIABLES_HOOK,
[
'mailLayout' => $mailLayout,
'mailLayoutVariables' => &$mailLayoutVariables,
]
)
This hook has been implemented as an example in our modules examples repository - example_module_mailtheme.