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

Hook actionListMailThemes

Information

List the available email themes and layouts:

This hook allows to add/remove available email themes (ThemeInterface) and/or to add/remove their layouts (LayoutInterface)

Hook locations:

  • front office

Hook type: action

Located in:

Call of the Hook in the origin file

dispatchWithParameters(
            ThemeCatalogInterface::LIST_MAIL_THEMES_HOOK,
            ['mailThemes' => $mailThemes]
        )

Example implementation

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