Override a class using a preference in Magento
Learn how to override a Magento class using di.xml class preference and disable plugins.
Lesson Content
Sometimes you wish to completely override a Magento class. This can be done using a class preference. This is useful if you can’t use a plugin, for example when the function you want to change is priv...
Premium content
Enroll to unlock the full content and all course materials.
Join the discussion!
Comments
Want to comment on this lesson?
Enroll in this course to leave comments.