Use Events and Observers in Magento 2
Events are dispatched by Magento modules on the trigger of a specific action. Not only that, but Magento also allows you to also create your own custom event that can be dispatched in your code. When the action is triggered, it will pass data to the relevant observer configured for the dispatched event. Events are […]