How can the develop...
 
Notifications
Clear all

How can the developer override the method?

1 Posts
1 Users
0 Likes
98 Views
(@cornadante)
Posts: 716
Noble Member
Topic starter
 

A developer found a bug inside a private method of a third party module class .

How can the developer override the method?

  • A . Create a custom class with the corrected logic, and define the class as a preference for original one in the di.xml
    B. Create a custom class with corrected logic, and define the class as preference in the preferences.xml.
    C. Create a plugin, implement correct logic in the 'after' method, and then define the plugin in the di.xml.

Show Answer Hide Answer

Suggested Answer: A
 
Posted : 16/11/2022 2:55 pm
Topic Tags

Latest Adobe AD0-E711 Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: