O'Reilly logo

Magento 2 Development Cookbook by Bart Delvaux

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Understanding event types

Working with event types is better than overwriting a function with dependency injection. When analyzing a process, it is good to think about how you can solve your problem. It is better to execute extra code instead of rewriting the standard functions of Magento.

With events, it is possible to execute code when something happens, but before we can do that, we have to know which events are available, when they are dispatched, and which parameters are available.

Getting ready

In this recipe, we will debug the events that are fired in Magento. Ensure that you have access to the command line because we will debug using the Magento log files.

How to do it...

The following steps describe how we can create a list from the dispatched ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required