-
Notifications
You must be signed in to change notification settings - Fork 480
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1852 from kpodemski/hooks/actionAfterLoadRoutes9x
Add Hook actionAfterLoadRoutes
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
modules/concepts/hooks/list-of-hooks/actionAfterLoadRoutes.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" >}}. |