Skip to content

Magento 2 Certification Question – How can a developer prioritize a plugin’s execution, if possible?

How can a developer prioritize a plugin’s execution, if possible?

A. The developer can use sortOrder property by specifying a higher value than the target plugin.

B. This cannot be achieved as the plugins are always executed by their module’s load order in
app/etc/config.php file

C. The developer can use sortOrder property by specifying a lower value than the target plugin.

As per my understanding (Plugin executed in Asc Order, so the lower one priority over the targeted one), the answer should be option C but in one of the untrusted resource it’s showing option A as answer.

Please confirm the correct answer.