QuestionQ4
Store Operations and AdminAn 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 plugins include after and around types, and each has a specified sortOrder.
Which solution should be used to satisfy this requirement?
- A Declare a new plugin with the sortOrder value higher than the highest declared plugin sortOrder and implement afterGetData method.
- B Declare a new plugin with the sortOrder value lower than the lowest declared plugin sortOrder and implement aroundGetData method.
- C Declare a new plugin with the sortOrder value higher than the highest declared plugin sortOrder and implement aroundGetData method.
Community Discussion