0

is possible to override core plugin method by preference?

Means I need to override afterXyz method in my module by using preference.

2

You can disable the Plugin with disabled="true". For example:

<type name="Magento\Framework\App\Action\Action">
    <plugin name="storeCheck" disabled="true" />
    <plugin name="storeCheckCustom" type="Vendor\Module\Model\Plugin\StoreCheck" sortOrder="99" />
</type>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.