QuestionQ54

VerifiedWorking with Admin

How may a developer override a method of a core class in Adobe Commerce?

Explanation

Adobe Commerce dependency injection supports preferences that substitute a custom class for a core class. A preference mapping from Magento\Catalog\Block\Product to Vendor\Module\Block\Product causes the custom implementation, including its overridden methods, to be used.

Community Discussion

No comments yet. Be the first to start the discussion!