How to Create Plugins in Magento 2?
Overview In this blog, we will discuss about one ot the main features of Magento2, that is ‘Plugins’. In magento 2, plugins are used to override a single functionality. By using Plugins, we can modify the behavior of a class while there is no need to change the class directly. A plugin ( also called as 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 us to substitute or extend the behavior of original, public methods for any class or interface. In Magento 3 types of plugins are available: Before Plugin - Input changes After Plugin - Output changes Around Plugin - Both Input and Output changes Without further delay,…