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

Hook actionListMailThemes

Informations

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 actionListMailThemes
Locations
FO
Type action
Origin core
Aliases

Located in

Origin File
core src/Core/MailTemplate/FolderThemeCatalog.php

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.