Video Lesson: Override a class using a preference in Magento

Override a class using a preference in Magento

This is premium content

Only available to enrolled or University students.
Join today to unlock all lessons in this course.

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.

Maggie

Hey, I'm Maggie! 👋

Ask me anything.

Want to chat with Maggie?

Enroll in this course for AI tutor access.

Comments

Join the discussion!

Notes

Keep track of what you learn!