Log in
Interface

ShipmentProviderInterface

Magento\Shipping\Model\ShipmentProviderInterface

What it does

This interface defines a contract for classes that provide shipment data in Magento 2.

Developers would implement this interface when creating custom shipment data providers that need to retrieve and format shipment items information.

It's particularly useful when extending or customizing the shipping functionality to integrate with third-party systems or add custom shipment handling logic.

Public Methods

  • getShipmentData()