Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
e6fc788
Synchronize hook reference pages with current PrestaShop 9.1 metadata…
MAX-IT-Tech Apr 13, 2026
31f8da4
Fix hook metadata regressions from review feedback.
MAX-IT-Tech May 22, 2026
3d2e2c6
Fix malformed hook front matter in metadata sync pages.
MAX-IT-Tech May 22, 2026
2989280
Finalize hook documentation sync for PrestaShop 9.1.x.
MAX-IT-Tech May 22, 2026
090c651
Update actionAdminAdministrationControllerPostProcessBefore.md
kpodemski May 25, 2026
d9d29d7
Update actionAdminAdminShopParametersMetaControllerPostProcessBefore.md
kpodemski May 25, 2026
6397f6a
Update actionAdminAdminWebserviceControllerPostProcessBefore.md
kpodemski May 25, 2026
6e016df
Clean up actionAdminAdvancedParametersPerformanceControllerPostProces…
kpodemski May 25, 2026
10b7f2c
Fix formatting of actionAdminControllerInitAfter hook example
kpodemski May 25, 2026
6b7e3d8
Refactor hook call syntax in actionAdminControllerInitBefore.md
kpodemski May 25, 2026
4676760
Refactor actionAdminDuplicateAfter hook usage
kpodemski May 25, 2026
843b8e4
Update actionAdminProductsListingFieldsModifier.md
kpodemski May 25, 2026
67e30d3
Delete modules/concepts/hooks/list-of-hooks/actionBeforeAjaxDie<Contr…
kpodemski May 25, 2026
abb3b64
Expand actionProductPriceCalculation hook parameters
kpodemski May 25, 2026
90b9fb3
Revise actionShopDataDuplication hook example
kpodemski May 25, 2026
7705ccd
Fix formatting of actionSubmitAccountBefore hook example
kpodemski May 25, 2026
80640da
Update hook call in actionValidateCustomerAddressForm
kpodemski May 25, 2026
6ba096b
Format Hook call in actionValidateOrder documentation
kpodemski May 25, 2026
eca3ca2
Fix formatting of actionValidateOrderBefore hook call
kpodemski May 25, 2026
6b483d6
Clean up displayAdminCustomers.md
kpodemski May 25, 2026
dddefda
Refactor displayAdminLogin documentation
kpodemski May 25, 2026
b712fd5
Clean up hook example in displayAdminOrder.md
kpodemski May 25, 2026
54c690c
Change code block from PHP to Twig
kpodemski May 25, 2026
12bc98e
Remove example code from displayAdminOrderMain.md
kpodemski May 25, 2026
cd3beae
Update displayAdminOrderMainBottom.md content
kpodemski May 25, 2026
6bc403a
Refactor displayAdminOrderSide documentation
kpodemski May 25, 2026
ec0f907
Refactor hook call example in displayAdminOrderSideBottom
kpodemski May 25, 2026
5ebdf25
Update displayAdminStatsModules.md by removing old code
kpodemski May 25, 2026
2952c13
Update hook rendering syntax to Twig
kpodemski May 25, 2026
958a655
Refactor displayBackOfficeHeader hook usage
kpodemski May 25, 2026
b65256a
Fix PHP code snippet for displayBackOfficeTop hook
kpodemski May 25, 2026
32d5f6e
Simplify hook call in displayCheckoutSubtotalDetails.md
kpodemski May 25, 2026
dde8f46
Correct hook usage example in documentation
kpodemski May 25, 2026
faa9459
Fix hook call syntax in displayCustomerAccountFormTop.md
kpodemski May 25, 2026
84fe9fc
Delete modules/concepts/hooks/list-of-hooks/displayDashboardToolbarIc…
kpodemski May 25, 2026
353db51
Fix syntax for Hook execution in displayCustomization.md
kpodemski May 25, 2026
5d5e9cc
Delete modules/concepts/hooks/list-of-hooks/displayFeatureForm.md
kpodemski May 25, 2026
80fee1d
Delete modules/concepts/hooks/list-of-hooks/displayFeaturePostProcess.md
kpodemski May 25, 2026
7102eb3
Delete modules/concepts/hooks/list-of-hooks/displayFeatureValueForm.md
kpodemski May 25, 2026
817f1bb
Delete modules/concepts/hooks/list-of-hooks/displayFeatureValuePostPr…
kpodemski May 25, 2026
6175dce
Refactor displayHeader hook execution
kpodemski May 25, 2026
485253b
Fix syntax for calling displayHome hook
kpodemski May 25, 2026
5883498
Fix syntax in displayMaintenance hook example
kpodemski May 25, 2026
fc5d35d
Fix syntax for calling displayOrderConfirmation hook
kpodemski May 25, 2026
3979db8
Fix syntax in Hook call example
kpodemski May 25, 2026
cde9f01
Fix rendering block for displayOrderPreview hook
kpodemski May 25, 2026
d824827
Fix formatting in displayPaymentReturn.md
kpodemski May 25, 2026
3920462
Remove copyright notice from PHP example
kpodemski May 25, 2026
f028c02
Refactor hook dispatch call in actionAdminDuplicateBefore
kpodemski May 25, 2026
155eb7e
Update actionAdminInternationalGeolocationControllerPostProcessBefore.md
kpodemski May 25, 2026
63b880d
Update actionAdminInternationalLocalizationControllerPostProcessBefor…
kpodemski May 25, 2026
be88f43
Update hook dispatch syntax in documentation
kpodemski May 25, 2026
3b407b1
Clean up actionAdminLogsControllerPostProcessBefore.md
kpodemski May 25, 2026
9b036f2
Update actionAdminMaintenanceControllerPostProcessBefore.md
kpodemski May 25, 2026
2aa3bd7
Update actionAdminPreferencesControllerPostProcessBefore.md
kpodemski May 25, 2026
9708bc6
Clean up actionAdminSecurityControllerPostProcessBefore example
kpodemski May 25, 2026
73bcbe8
Update hook call in actionAdminShippingPreferences
kpodemski May 25, 2026
809670a
Fix hook call syntax in actionAdminShippingPreferences
kpodemski May 25, 2026
5f07f84
Refactor hook dispatch code in documentation
kpodemski May 25, 2026
9389097
Update documentation for actionAdminShopParametersOrderPreferencesCon…
kpodemski May 25, 2026
5058c25
Simplify hook example by removing form handling
kpodemski May 25, 2026
600eb2c
Remove constant and example for mail layout hook
kpodemski May 25, 2026
8330ebc
Enhance actionCartGetPackageShippingCost hook parameters
kpodemski May 25, 2026
29c5694
Fix formatting of actionControllerInitAfter hook call
kpodemski May 25, 2026
ffd27ee
Fix formatting of actionControllerInitBefore hook call
kpodemski May 25, 2026
17f78a1
Update hook call syntax in actionEmailAddAfterContent.md
kpodemski May 25, 2026
a16af1e
Refactor actionEmailAddBeforeContent hook call
kpodemski May 25, 2026
63b413f
Add additional parameters to actionEmailSendBefore hook
kpodemski May 25, 2026
02b4aa6
Fix formatting of Hook execution example in markdown
kpodemski May 25, 2026
6449f32
Fix formatting of Hook execution in documentation
kpodemski May 25, 2026
1856b28
Update syntax for actionFrontControllerInitAfter hook
kpodemski May 25, 2026
ccf8fce
Fix formatting for actionFrontControllerInitBefore hook
kpodemski May 25, 2026
3197e0a
Fix formatting of Hook execution in documentation
kpodemski May 25, 2026
b87021e
Modify actionFrontControllerSetVariables hook call
kpodemski May 25, 2026
de0ec8c
Update hook call to use actionFrontControllerSetVariables
kpodemski May 25, 2026
5ac9064
Fix formatting of Hook execution example
kpodemski May 25, 2026
0c618bb
Fix formatting in actionGetAdminOrderButtons documentation
kpodemski May 25, 2026
3b41d95
Modify actionGetAlternativeSearchPanels Hook call
kpodemski May 25, 2026
4d05f6c
Refactor actionGetExtraMailTemplateVars hook call
kpodemski May 25, 2026
861329e
Refactor actionGetProductPropertiesAfter documentation
kpodemski May 25, 2026
2bbb042
Refactor actionLanguageLinkParameters hook call
kpodemski May 25, 2026
0734049
Fix formatting of actionLoggerLogMessage hook example
kpodemski May 25, 2026
223bf81
Clean up commented code in actionModifyFrontendSitemap.md
kpodemski May 25, 2026
d769b88
Fix formatting of Hook execution example
kpodemski May 25, 2026
d96ea0b
Fix syntax for calling actionProductCoverage hook
kpodemski May 25, 2026
aef19fd
Include id_shop in actionUpdateQuantity hook
kpodemski May 25, 2026
53a9085
Enhance actionValidateCartRule hook with additional parameters
kpodemski May 25, 2026
130dc7d
Add currency and orderStatus to actionValidateOrderAfter
kpodemski May 25, 2026
a2624e6
Update Hook call syntax in actionValidateStepComplete
kpodemski May 25, 2026
93db0e1
Update dashboardData.md
kpodemski May 25, 2026
7a59482
Refactor dashboardZoneOne hook implementation
kpodemski May 25, 2026
162f16f
Fix syntax in dashboardZoneThree hook call
kpodemski May 25, 2026
47c778e
Refactor dashboardZoneTwo hook definition
kpodemski May 25, 2026
28df110
Fix formatting in deleteProductAttribute.md
kpodemski May 25, 2026
7b1d327
Simplify hookDisplayAfterCarrier call
kpodemski May 25, 2026
53bb395
Simplify hook call in displayBeforeCarrier.md
kpodemski May 25, 2026
88cb174
Refactor hook call example to Twig syntax
kpodemski May 25, 2026
de5b191
Add parameters for id_shop and chain to Hook exec
kpodemski May 25, 2026
8a67e75
Update filterCmsCategoryContent hook call
kpodemski May 25, 2026
980ed56
Update filterCmsContent hook parameters
kpodemski May 25, 2026
5f42689
Enhance filterHtmlContent hook call with extra options
kpodemski May 25, 2026
80c14fc
Add id_shop and chain parameters to Hook exec call
kpodemski May 25, 2026
afb5327
Update filterProductContent hook call parameters
kpodemski May 25, 2026
9d296e7
Modify filterSupplierContent hook call with additional parameter
kpodemski May 25, 2026
48d685f
Enhance overrideLayoutTemplate hook with content_only
kpodemski May 25, 2026
5fb671a
Fix formatting of productSearchProvider hook example
kpodemski May 25, 2026
71863a5
Fix formatting of sendMailAlterTemplateVars hook call
kpodemski May 25, 2026
c82708d
Change code block from Twig to PHP
kpodemski May 25, 2026
df0717a
Fix displayAdminLogin hook
kpodemski May 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hidden: true
hookTitle:
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/classes/controller/AdminController.php'
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/classes/controller/AdminController.php'
file: classes/controller/AdminController.php
locations:
- 'back office'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hidden: true
hookTitle:
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/classes/controller/AdminController.php'
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/classes/controller/AdminController.php'
file: classes/controller/AdminController.php
locations:
- 'back office'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hidden: true
hookTitle:
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/classes/controller/AdminController.php'
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/classes/controller/AdminController.php'
file: classes/controller/AdminController.php
locations:
- 'back office'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hidden: true
hookTitle:
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/classes/controller/AdminController.php'
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/classes/controller/AdminController.php'
file: classes/controller/AdminController.php
locations:
- 'back office'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hidden: true
hookTitle:
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/classes/controller/AdminController.php'
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/classes/controller/AdminController.php'
file: classes/controller/AdminController.php
locations:
- 'back office'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hidden: true
hookTitle:
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/classes/controller/AdminController.php'
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/classes/controller/AdminController.php'
file: classes/controller/AdminController.php
locations:
- 'back office'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hidden: true
hookTitle:
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/src/Core/Grid/GridFactory.php'
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/src/Core/Grid/GridFactory.php'
file: src/Core/Grid/GridFactory.php
locations:
- 'front office'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hidden: true
hookTitle:
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/src/Core/Grid/Definition/Factory/AbstractGridDefinitionFactory.php'
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/src/Core/Grid/Definition/Factory/AbstractGridDefinitionFactory.php'
file: src/Core/Grid/Definition/Factory/AbstractGridDefinitionFactory.php
locations:
- 'front office'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hidden: true
hookTitle:
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/src/Core/Grid/Filter/GridFilterFormFactory.php'
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/src/Core/Grid/Filter/GridFilterFormFactory.php'
file: src/Core/Grid/Filter/GridFilterFormFactory.php
locations:
- 'front office'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hidden: true
hookTitle:
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/src/Core/Grid/Presenter/GridPresenter.php'
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/src/Core/Grid/Presenter/GridPresenter.php'
file: src/Core/Grid/Presenter/GridPresenter.php
locations:
- 'front office'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hidden: true
hookTitle:
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/src/Core/Grid/Data/Factory/DoctrineGridDataFactory.php'
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/src/Core/Grid/Data/Factory/DoctrineGridDataFactory.php'
file: src/Core/Grid/Data/Factory/DoctrineGridDataFactory.php
locations:
- 'front office'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hidden: true
hookTitle:
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/src/Core/Form/IdentifiableObject/Builder/FormBuilder.php'
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/src/Core/Form/IdentifiableObject/Builder/FormBuilder.php'
file: src/Core/Form/IdentifiableObject/Builder/FormBuilder.php
locations:
- 'front office'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hidden: true
hookTitle:
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/src/Core/Form/IdentifiableObject/Builder/FormBuilder.php'
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/src/Core/Form/IdentifiableObject/Builder/FormBuilder.php'
file: src/Core/Form/IdentifiableObject/Builder/FormBuilder.php
locations:
- 'front office'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hidden: true
hookTitle:
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/src/Core/Form/IdentifiableObject/Builder/FormBuilder.php'
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/src/Core/Form/IdentifiableObject/Builder/FormBuilder.php'
file: src/Core/Form/IdentifiableObject/Builder/FormBuilder.php
locations:
- 'front office'
Expand Down
Comment thread
kpodemski marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ hidden: true
hookTitle:
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/src/PrestaShopBundle/Bridge/Helper/Listing/HelperBridge/HelperListBridge.php'
file: src/PrestaShopBundle/Bridge/Helper/Listing/HelperBridge/HelperListBridge.php
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/classes/controller/AdminController.php'
file: classes/controller/AdminController.php
locations:
- 'front office'
- 'back office'
type: action
hookAliases:
array_return: false
Expand All @@ -23,13 +23,7 @@ description: ''
## Call of the Hook in the origin file

```php
dispatchWithParameters('action' . $helperListConfiguration->legacyControllerName . 'ListingFieldsModifier', [
'select' => &$helperListConfiguration->select,
'join' => &$helperListConfiguration->join,
'where' => &$helperListConfiguration->where,
'group_by' => &$helperListConfiguration->group,
'order_by' => &$helperListConfiguration->orderBy,
'order_way' => &$helperListConfiguration->orderWay,
'fields' => &$helperListConfiguration->fieldsList,
Hook::exec('action' . $this->controller_name . 'ListingFieldsModifier', [
'fields' => &$this->fields_list,
])
```
Comment thread
kpodemski marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ hidden: true
hookTitle:
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/src/PrestaShopBundle/Bridge/Helper/Listing/HelperBridge/HelperListBridge.php'
file: src/PrestaShopBundle/Bridge/Helper/Listing/HelperBridge/HelperListBridge.php
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/classes/controller/AdminController.php'
file: classes/controller/AdminController.php
locations:
- 'front office'
- 'back office'
type: action
hookAliases:
array_return: false
Expand All @@ -23,8 +23,8 @@ description: ''
## Call of the Hook in the origin file

```php
dispatchWithParameters('action' . $helperListConfiguration->legacyControllerName . 'ListingResultsModifier', [
'list' => &$helperListConfiguration->list,
'list_total' => &$helperListConfiguration->listTotal,
Hook::exec('action' . $this->controller_name . 'ListingResultsModifier', [
'list' => &$this->_list,
'list_total' => &$this->_listTotal,
])
```
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hidden: true
hookTitle:
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/classes/controller/AdminController.php'
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/classes/controller/AdminController.php'
file: classes/controller/AdminController.php
locations:
- 'back office'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hidden: true
hookTitle:
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/classes/controller/AdminController.php'
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/classes/controller/AdminController.php'
file: classes/controller/AdminController.php
locations:
- 'back office'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hidden: true
hookTitle: 'On post-process in Admin Configure Shop Parameters Meta Controller'
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/src/PrestaShopBundle/Controller/Admin/Configure/ShopParameters/MetaController.php'
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/src/PrestaShopBundle/Controller/Admin/Configure/ShopParameters/MetaController.php'
file: src/PrestaShopBundle/Controller/Admin/Configure/ShopParameters/MetaController.php
locations:
- 'back office'
Expand All @@ -23,5 +23,5 @@ description: 'This hook is called on Admin Configure Shop Parameters Meta post-p
## Call of the Hook in the origin file

```php
dispatchHook('actionAdminAdminShopParametersMetaControllerPostProcessBefore', ['controller' => $this])
$this->dispatchHookWithParameters('actionAdminAdminShopParametersMetaControllerPostProcessBefore', ['controller' => $this]);
```
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hidden: true
hookTitle:
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/WebserviceController.php'
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/WebserviceController.php'
file: src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/WebserviceController.php
locations:
- 'back office'
Expand All @@ -23,5 +23,5 @@ description: ''
## Call of the Hook in the origin file

```php
dispatchHook('actionAdminAdminWebserviceControllerPostProcessBefore', ['controller' => $this])
$this->dispatchHookWithParameters('actionAdminAdminWebserviceControllerPostProcessBefore', ['controller' => $this]);
```
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hidden: true
hookTitle:
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/AdministrationController.php'
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/AdministrationController.php'
file: src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/AdministrationController.php
locations:
- 'back office'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hidden: true
hookTitle: 'On post-process in Admin Configure Advanced Parameters Administration Controller'
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/AdministrationController.php'
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/AdministrationController.php'
file: src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/AdministrationController.php
locations:
- 'back office'
Expand All @@ -23,5 +23,5 @@ description: 'This hook is called on Admin Configure Advanced Parameters Adminis
## Call of the Hook in the origin file

```php
dispatchHook('actionAdminAdministrationControllerPostProcessBefore', ['controller' => $this])
$this->dispatchHookWithParameters('actionAdminAdministrationControllerPostProcessBefore', ['controller' => $this]);
```
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hidden: true
hookTitle:
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/PerformanceController.php'
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/PerformanceController.php'
file: src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/PerformanceController.php
locations:
- 'back office'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hidden: true
hookTitle: 'On post-process in Admin Configure Advanced Parameters Performance Controller'
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/PerformanceController.php'
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/PerformanceController.php'
file: src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/PerformanceController.php
locations:
- 'back office'
Expand All @@ -23,5 +23,5 @@ description: 'This hook is called on Admin Configure Advanced Parameters Perform
## Call of the Hook in the origin file

```php
dispatchHook('actionAdminAdvancedParametersPerformanceControllerPostProcessBefore', ['controller' => $this])
$this->dispatchHookWithParameters('actionAdminAdvancedParametersPerformanceControllerPostProcessBefore', ['controller' => $this]);
```
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ hidden: true
hookTitle: 'Modify back office breadcrumb'
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.0.x/src/PrestaShopBundle/Twig/Component/Toolbar.php'
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/classes/controller/AdminController.php'
file: classes/controller/AdminController.php
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/src/PrestaShopBundle/Twig/Component/Toolbar.php'
file: src/PrestaShopBundle/Twig/Component/Toolbar.php
locations:
- 'back office'
Expand All @@ -23,5 +26,5 @@ description: 'This hook allows modifying back office breadcrumb'
## Call of the Hook in the origin file

```php
$this->hookDispatcher->dispatchWithParameters('actionAdminBreadcrumbModifier', ['tabs' => $tabs, 'breadcrumb' => &$this->breadcrumbs]);
Hook::exec('actionAdminBreadcrumbModifier', ['tabs' => $tabs, 'breadcrumb' => &$breadcrumbs2], null, true)
```
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hidden: true
hookTitle: 'Perform actions after admin controller initialization'
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/classes/controller/AdminController.php'
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/classes/controller/AdminController.php'
file: classes/controller/AdminController.php
locations:
- 'back office'
Expand All @@ -24,9 +24,9 @@ description: 'This hook is launched after the initialization of all admin contro

```php
Hook::exec(
'actionAdminControllerInitAfter',
[
'controller' => $this,
]
)
'actionAdminControllerInitAfter',
[
'controller' => $this,
]
);
```
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hidden: true
hookTitle: 'Perform actions before admin controller initialization'
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/classes/controller/AdminController.php'
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/classes/controller/AdminController.php'
file: classes/controller/AdminController.php
locations:
- 'back office'
Expand All @@ -24,9 +24,9 @@ description: 'This hook is launched before the initialization of all admin contr

```php
Hook::exec(
'actionAdminControllerInitBefore',
[
'controller' => $this,
]
)
'actionAdminControllerInitBefore',
[
'controller' => $this,
]
);
```
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
---
Title: actionAdminControllerSetMedia
hidden: true
hookTitle:
hookTitle: ''
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/8.0.x/src/PrestaShopBundle/Bridge/AdminController/LegacyControllerBridge.php'
file: src/PrestaShopBundle/Bridge/AdminController/LegacyControllerBridge.php
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/classes/controller/AdminController.php'
file: classes/controller/AdminController.php
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/src/PrestaShopBundle/Twig/Component/HeadTag.php'
file: src/PrestaShopBundle/Twig/Component/HeadTag.php
locations:
- 'back office'
type: action
Expand All @@ -24,9 +27,15 @@ description: ''
## Call of the Hook in the origin file

```php
dispatchWithParameters('actionAdminControllerSetMedia')
Hook::exec('actionAdminControllerSetMedia')
```

## Example implementation
This hook has been implemented as an example in our
[modules examples repository - demoextendgrid](https://github.com/PrestaShop/example-modules/tree/master/demoextendgrid).

This hook has been implemented as an example in our [modules examples repository - demoextendgrid](https://github.com/PrestaShop/example-modules/tree/master/demoextendgrid).
{{% callout type="warning" %}}
In PrestaShop 9, this hook is dispatched from a Twig component.
The methods `addJqueryPlugin()` and `addJqueryUI()` may not be available
on migrated Symfony pages. Use `addJS()` and `addCSS()` instead.
{{% /callout %}}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
Title: actionAdminDuplicateAfter
hidden: true
hookTitle:
hookTitle: ''
files:
-
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.0.x/src/Adapter/Product/Update/ProductDuplicator.php'
url: 'https://github.com/PrestaShop/PrestaShop/blob/9.1.x/src/Adapter/Product/Update/ProductDuplicator.php'
file: src/Adapter/Product/Update/ProductDuplicator.php
locations:
- 'back office'
Expand Down
Loading
Loading