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

Hook addWebserviceResources

Informations

Add extra webservice resource This hook is called when webservice resources list in webservice controller
Hook addWebserviceResources
Locations
FO
Type
Origin core
Aliases

This hook has an $array_return parameter set to true (module output will be set by name in an array, see explaination here).

This hook has a $check_exceptions parameter set to false (check permission exceptions, see explaination here).

Located in

Origin File
core classes/webservice/WebserviceRequest.php

Call of the Hook in the origin file

Hook::exec('addWebserviceResources', ['resources' => $resources], null, true, false)