Labels
Magento\Shipping\Model\Shipping\Labels
What it does
This class handles the creation and preparation of shipping label requests in Magento 2.
Developers use this class when they need to generate shipping labels for order shipments, as it collects all necessary shipper and recipient information from store configuration and order data, then delegates the actual label creation to the appropriate shipping carrier.
It validates that all required store information is configured before allowing label generation.
Public Methods
- requestToShipment()