Interface
RateCollectorInterface
Magento\Quote\Model\Quote\Address\RateCollectorInterface
What it does
This interface defines a contract for collecting shipping rates for a quote address in Magento 2.
Developers implement this interface to create custom shipping rate collectors that gather available shipping methods and their costs based on a rate request.
It's primarily used during checkout when the system needs to determine shipping options for the customer's cart.
Public Methods
- collectRates()