Log in
Model

Observer

Magento\Shipping\Model\Observer

What it does

This observer class handles the aggregation of shipping report data in Magento 2's sales reporting system.

Developers would use this class to automatically refresh shipping statistics, typically triggered by a scheduled cron job to update reports with shipment data from the last 25 hours.

It ensures the sales shipping reports stay current by recalculating metrics while temporarily emulating the default store locale.

Public Methods

  • aggregateSalesReportShipmentData()