PrestaShop Developer Conference
PrestaShop Developer Conference
Paris, France - November 30, 2023
Let's talk code, commerce and open source.

Hook actionGetMailLayoutTransformations

Information

Define the transformation to apply on layout:

This hook allows to add/remove TransformationInterface used to generate an email layout

Hook locations:

  • front office

Hook type: action

Located in:

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.