Exam4Training

Which two actions are required to ensure the new plugin will execute last?

You are implementing a before plugin in MyCompany_Magic. It will intercept the same method that MyCompany_Admission is already intercepting using a before plugin: Topmenu::getBlockHtml

Which two actions are required to ensure the new plugin will execute last? (Choose two.)
A . Include a sortOrder=”20” on the new plugin in MyCompany_Magic’s etc/di.xml file
B . Configure plugin sequencing for both plugins in MyCompany_Magic’s etc/plugin_sequence.xml file
C . Set a sortOrder=”10” for MyCompany_Admission’s plugin in MyCompany_Magic’s etc/di.xml
D . Add MyCompany_Admission as a dependency in MyCompany_Magic’s etc/module.xml file

Answer: A,C

Exit mobile version