Interface
CarrierInterface
Magento\Shipping\Model\Carrier\CarrierInterface
What it does
CarrierInterface defines the contract that all shipping carriers in Magento 2 must implement.
Developers use this interface when creating custom shipping methods or integrating third-party carriers like UPS, FedEx, or USPS.
It ensures carriers provide essential functionality like tracking availability and listing their supported shipping methods.
Public Methods
- isTrackingAvailable()
- getAllowedMethods()