Magento 2 ViewModel as per Single Responsibility Principle

Before studying ViewModel feature of Magento 2, let’s understand first SRP.SRP stands for Single Responsibility Principle, Every class should have responsibility over a single part of the functionality provided by the software, and that responsibility should be entirely encapsulated by the class.In simple words : Each class should ideally have only one purpose to change.Basically this is a part …

Magento 2 ViewModel as per Single Responsibility Principle Read More »