I have a special shipping method special
, which should deactivate/disable all shipping methods from other carriers, if this method is active.
Currently I override the class \Magento\Shipping\Model\Rate\Result
and filter all other methods, if the method special
is added. This works, but doesn't feels like a clean solution.
What would be the best practice, to filter other shipping methods?