Model
Status
Magento\Sales\Model\Order\Status
What it does
This class manages order statuses in Magento 2, allowing developers to create, assign, and manipulate status labels for sales orders.
Developers use it to associate custom or default statuses with order states (like 'pending', 'processing', 'complete'), retrieve localized status labels for different store views, and manage the relationship between statuses and states throughout the order lifecycle.
Public Methods
- assignState()
- unassignState()
- getStoreLabels()
- getStoreLabel()
- loadDefaultByState()