ExamGecko
Question list
Search
Search

Question 22 - AD0-E711 discussion

Report
Export

A developer delected lhat a piece of functionality implemented in a third-party module's plugin can be omitted. So, the developer decides to deactivate the plugin. How can a developer take this action?

A.
The only way to deactivate a plugin is to remove it from di.xml file in the module where it was defined.The plugin can be deactivated In di.xml In a custom module using:
Answers
A.
The only way to deactivate a plugin is to remove it from di.xml file in the module where it was defined.The plugin can be deactivated In di.xml In a custom module using:
B.
<plugin name="pluginName' disabled="true7>
Answers
B.
<plugin name="pluginName' disabled="true7>
C.
The plugin can be deactivated in di.xml in a custom module using the code:<remove name-'pluginName" />
Answers
C.
The plugin can be deactivated in di.xml in a custom module using the code:<remove name-'pluginName" />
Suggested answer: B

Explanation:

To deactivate a plugin, the developer can add the 'disabled' attribute in the di.xml file of a custom module using the following code: <plugin name="pluginName" disabled="true">. This will disable the specified plugin without the need to remove it from the di.xml file where it was defined.

Reference: https://devdocs.magento.com/guides/v2.4/extension-dev-guide/plugins.html#disablingplugins

asked 02/10/2024
Victor Ogbonna
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first