Allmethods
Magento\Shipping\Model\Config\Source\Allmethods
What it does
This class provides a formatted array of all available shipping methods in Magento 2 for use in admin configuration dropdowns and select fields.
Developers use this class when they need to display a list of shipping carriers and their methods, with an option to filter only active carriers.
It's commonly used in system configuration fields where administrators need to select shipping methods.
Public Methods
- toOptionArray()