Log in
Model

ShipmentItemFormatter

Magento\SalesGraphQl\Model\Shipment\Item\ShipmentItemFormatter

What it does

This class formats shipment item data into a structured array suitable for GraphQL API responses.

Developers use this formatter when exposing order shipment item information through Magento's GraphQL endpoints, ensuring consistent data structure including product details, prices, quantities, and base64-encoded IDs for the storefront.

Public Methods

  • formatShipmentItem()