Timeline for Magento2: what is the basic difference between plugin and preference?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 6, 2015 at 12:12 | vote | accept | Yogesh Karodiya | ||
Oct 5, 2015 at 20:41 | comment | added | Ryan Hoerr | @KAndy That may be the basic intended purpose, but a side effect of that is they also work for class overriding. Semantically they are the same. Class rewriting via preferences is what Yogesh was asking about, and also what the Fundamentals exercise he was working on instructs you to do. | |
Oct 5, 2015 at 17:02 | comment | added | KAndy | Preference is not equivalent to class rewriting. It is way to provide default implementation for interfaces. | |
Oct 5, 2015 at 12:54 | history | answered | Ryan Hoerr | CC BY-SA 3.0 |