3

I've installed a vendor module which as a plugin in its di.xml.

What I intend to do is to write my own module to disable the plugin in that vendor module as I wanted to have my own functionalities for a particular part. Although I can modify that module's di.xml by setting its disabled attribute to true, since it's a vendor module, I try to avoid modifying it directly.

How can I disable a plugin in module A from another module B?

1 Answer 1

9

Edit: just saw that you already tried the solution below. AFAIK it's the only "clean" way of doing it

You can add the following in your own di.xml

<config>
    <type name="{ObservedType}">
        <plugin name="{pluginName}" disabled="true"/>
    </type>
</config>

Make sure your own module depends on the 3rd party module

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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