Log in
Model

InsertOrderStatusChangeHistory

Magento\Sales\Model\InsertOrderStatusChangeHistory

What it does

This class tracks order status changes by inserting a new history record whenever an order's status is modified.

Developers would use this to maintain an audit trail of status transitions for orders, which is useful for debugging order workflows and providing status history to customers or administrators.

Public Methods

  • execute()