Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe AD0-E717 Exam - Topic 8 Question 66 Discussion

How can a developer prioritize a plugin's execution, if possible?
A) The developer can use sortOrder property by specifying a lower value than the target plugin.
B) The developer can use sortOrder property by specifying a higher value than the target plugin.
C) This cannot be achieved as the plugins are always executed by their module's load order in app/etc/config.php file.

Adobe AD0-E717 Exam - Topic 8 Question 66 Discussion

Actual exam question for Adobe's AD0-E717 exam
Question #: 66
Topic #: 8
[All AD0-E717 Questions]

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

Show Suggested Answer Hide Answer
Suggested Answer: A

A developer can prioritize the execution of a plugin by using the sortOrder property within the plugin's declaration in the di.xml file. Specifying a lower value for the sortOrder property gives the plugin higher priority, meaning it will be executed before other plugins with a higher sortOrder value. This allows developers to control the order of plugin execution, which can be critical for ensuring the desired outcome when multiple plugins are affecting the same method.


Contribute your Thoughts:

0/2000 characters

Currently there are no comments in this discussion, be the first to comment!


Save Cancel