QuestionQ14
Design and implement optimal solutions for Adobe Commerce to meet business needsAn Adobe Commerce Architect must log the result of a ServiceClass::getData method execution after every plugin has run. The method is public, and several plugins are declared for it. These include after and around types, all with a specified sortOrder.
Which solution should be used to fulfill this requirement?
- A Declare a new plugin with the sortOrder value lower than the lowest declared plugin sortOrder and implement aroundGetData method.
- B Declare a new plugin with the sortOrder value higher than the highest declared plugin sortOrder and implement afterGetData method.
- C Declare a new plugin with the sortOrder value higher than the highest declared plugin sortOrder and implement aroundGetData method.
Community Discussion