Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.
You might want to read the documentation for the current version, PrestaShop 8. Read the current version of this page
Hook | actionGetMailLayoutTransformations |
---|---|
Locations | FO |
Type | action |
Origin | core |
Aliases | |
Description | This hook allows to add/remove TransformationInterface used to generate an email layout |
Origin | File |
---|---|
core | src/Adapter/MailTemplate/MailTemplateTwigRenderer.php |
dispatchWithParameters(
MailTemplateRendererInterface::GET_MAIL_LAYOUT_TRANSFORMATIONS,
[
'mailLayout' => $mailLayout,
'templateType' => $templateType,
'layoutTransformations' => $templateTransformations,
]
)
This hook has been implemented as an example in our modules examples repository - example_module_mailtheme.