In this chapter, we had a look at a powerful feature of Magento called plugins. We created a small module with three plugins; each plugin had a different sort order. This enabled us to trace the execution flow of multiple plugins that observe the same method. We explored in detail the before
, after
, and around
listener methods, while having a strong emphasis on the parameter order. The finalized module used in this chapter can be found at https://github.com/ajzele/B05032-Foggyline_Plugged.
In the next chapter, we are going to dive deep into backend development.
18.220.126.5