I have created a Plugin. Registered it in di.xml All public methods execute.

Can I inject/rewrite/replace (don't know the proper title) protected methods? How?


No you cant, and you should not normally. But you can extend the Class and use the di.xml to get your class injected instead of the original one.

| improve this answer | |

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.