From 4884ade48564f41cc0c12e76c94991b2aaf1b162 Mon Sep 17 00:00:00 2001 From: Krystian Podemski Date: Wed, 31 Jul 2024 11:32:46 +0200 Subject: [PATCH] Add Hook actionAfterLoadRoutes --- .../list-of-hooks/actionAfterLoadRoutes.md | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 modules/concepts/hooks/list-of-hooks/actionAfterLoadRoutes.md diff --git a/modules/concepts/hooks/list-of-hooks/actionAfterLoadRoutes.md b/modules/concepts/hooks/list-of-hooks/actionAfterLoadRoutes.md new file mode 100644 index 0000000000..5108267357 --- /dev/null +++ b/modules/concepts/hooks/list-of-hooks/actionAfterLoadRoutes.md @@ -0,0 +1,32 @@ +--- +Title: actionAfterLoadRoutes +hidden: true +hookTitle: +files: + - + url: 'https://github.com/PrestaShop/PrestaShop/blob/8.1.x/classes/Dispatcher.php#L708' + file: classes/Dispatcher.php +locations: + - 'front office' + - 'back office' +type: action +hookAliases: +array_return: false +check_exceptions: false +chain: false +origin: core +description: '' + +--- + +{{% hookDescriptor %}} + +## Call of the Hook in the origin file + +This hook was added in {{< minver v="8.1.2" >}}. + +```php +Hook::exec('actionAfterLoadRoutes', ['dispatcher' => $this, 'id_shop' => $id_shop]); +``` + +Parameter `$id_shop` has been added in version {{< minver v="8.1.5" >}}. \ No newline at end of file