In Magento 2.3 we can add product or customer attribute using DataPatchInterface. Most of the example I saw that people adding only one attribute in one class. So my question is.Is it possible to add more eav attributes in one class or do I have to make sperate classes for others?


It is up to you. You may manipulate with as many attributes within one Data Patch as you wish.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.