Log in
Model

Result

Magento\Shipping\Model\Tracking\Result

What it does

This class serves as a container for shipment tracking information results in Magento 2.

Developers use it when implementing custom shipping carriers to collect and return tracking data, allowing them to add multiple tracking records, handle errors, and retrieve all tracking information for display to customers.

It acts as a collection object that standardizes how tracking results are passed between shipping methods and the frontend.

Public Methods

  • reset()
  • setError()
  • getError()
  • append()
  • getAllTrackings()