ExamGecko
Question list
Search
Search

Question 23 - AD0-E711 discussion

Report
Export

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

A.
The developer can use sorlOrder property by specifying a higher value than the target plugin.
Answers
A.
The developer can use sorlOrder 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
Answers
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.
Answers
C.
The developer can use sortOrder property by specifying a lower value than the target plugin.
Suggested answer: C

Explanation:

To prioritize a plugin's execution, a developer can use the 'sortOrder' property by specifying a lower value than the target plugin. The lower the sortOrder value, the higher the priority. Reference:

https://devdocs.magento.com/guides/v2.4/extension-dev-guide/plugins.html#declaring-a-plugin

asked 02/10/2024
jitendra makwana
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first