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 actionListModules

Informations

Allows you to add your own modules from a remote source in the modules list in the back office.
Hook actionListModules
Locations
BO
Type action
Origin core
Aliases

Located in

Origin File

Call of the Hook in the origin file

$modulesFromHook = $this->hookManager->exec('actionListModules', [], null, true);
$modulesFromHook = array_values($modulesFromHook ?? []);

Example implementation

This hook has been implemented in the native ps_distributionapiclient module