Define the transformation to apply on layout:
This hook allows to add/remove TransformationInterface used to generate an email layout
Hook locations:
Hook type: action
Located in:
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.