Allmethods
Magento\Shipping\Model\Config\Source\Allmethods
What it does
This class provides a source model for generating dropdown options of all available shipping methods in Magento 2.
Developers use it in system configuration fields or UI components when they need to display a list of shipping carriers and their methods, with an option to filter only active carriers.
The output is formatted as a nested array with carrier codes as keys and their respective shipping methods as values.
Public Methods
- toOptionArray()