Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.

You might want to read the documentation for the current version, PrestaShop 8. Read the current version of this page

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
Description This hook allows to add/remove available email themes (ThemeInterface) and/or to add/remove their layouts (LayoutInterface)

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.