Blog

Magento 2 Plugins

A plugin, or interceptor, is a class that modifies the behavior of public class functions by intercepting a function call and running code before, after, or around that function call. This allows you to substitute or extend the behavior of original, public methods for any class or interface. Plugins can not be used on following: […]

Read More

Magento 2 Events Observers

Magento 2 EventsEvents are dispatched by Magento 2 modules whenever specific actions are triggered.When an event dispatches, it passes data to the observer that is configured to watch that event.You can dispatch Magento 2 Events using the Magento\Framework\Event\Manager class.This class can be obtained through dependency injection by defining the dependency in the constructor method of […]

Read More