0

How to override a class without creating parent constructor?
Actually I'm overriding Widget and it works perfectly for 2.2.X versions but for 2.1.X versions it shows me an error Interceptor::escapeHtmlAttr
After searching this error I got that this is the version problem so some files are not available in 2.1.X versions so after that I want to override the class without parent constructor,
How can I do that???

2
  • have you checked this github.com/magento/magento2/commit/…. escapeHtmlAttr is introduced in magento 2.2.x so therefore it give error Mar 13, 2019 at 11:31
  • Yeah Brother I know that but I need a generic solution which works on every version of Magento 2
    – Asad Khan
    Mar 13, 2019 at 11:36

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.