Appendix – Module Upgrade, The Hooks Discovery Tool, and Multi-Store Functions

Getting the hook parameters quickly

Even if we presented methods to find which hooks to use in our modules multiple times, we haven’t yet presented the Hooks tool in the Symfony profiler toolbar visible in the BO Symfony-based controllers.

If you connect to your BO, and go to a Symfony-based controller in debug mode, you will find, in the profiler toolbar at the bottom of the page, the new Hooks tool:

Figure A.1 – The Hooks profiler tool

Figure A.1 – The Hooks profiler tool

It will give you a shortlist of triggered hooks registered to modules. But if you click on the Hooks tab in the profiler, you ...

Get Practical Module Development for Prestashop 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.