Warning: You are browsing the documentation for PrestaShop 8, which is outdated.

You might want to read an updated version of this page for the current version, PrestaShop 9. Read the updated version of this page

Learn how to update to the latest version.

Hook actionGetMailLayoutTransformations

Informations

Define the transformation to apply on layout This hook allows to add/remove TransformationInterface used to generate an email layout
Hook actionGetMailLayoutTransformations
Locations
FO
Type action
Origin core
Aliases
Description This hook allows to add/remove TransformationInterface used to generate an email layout

Located in

Origin File
core src/Adapter/MailTemplate/MailTemplateTwigRenderer.php

Call of the Hook in the origin file

dispatchWithParameters(
            MailTemplateRendererInterface::GET_MAIL_LAYOUT_TRANSFORMATIONS,
            [
                'mailLayout' => $mailLayout,
                'templateType' => $templateType,
                'layoutTransformations' => $templateTransformations,
            ]
        )

Example implementation

This hook has been implemented as an example in our modules examples repository - example_module_mailtheme.