Magento 2: Sort Order gets Weird for “Around” Plugins
- All before plugins fire
- The around plugin chaining happens
- All after plugins fire
However, based on what Anton’s said here, it sounds like an around plugin will fire before a before plugin if it has a lower sort order that the before plugin. Beyond the trickiness of following a chain of execution, this has extra implications for an around plugin that decides to skip the call to $proceed()
– not only can it cancel the actual method call, it can also cancel other calls to before plugins as well.