Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Avoid using around method plugins when they are not required because they increase stack traces and affect performance. The only use case for around method plugins is when the execution of all further plugins and original methods need termination. Use after method plugins if you require arguments for replacing or altering function results.

Suggestions:

Depending on this the use case, using beforeExecute should still help accomplish the same objectivesimilar objectives.

References:

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