Model
Status
Magento\Sales\Model\ResourceModel\Order\Status
What it does
This resource model manages order statuses in Magento 2, handling database operations for status configuration, labels, and state assignments.
Developers use this class when creating custom order statuses, assigning statuses to order states, managing store-specific status labels, or checking if a status is being used by existing orders before deletion.
Public Methods
- getStoreLabels()
- assignState()
- unassignState()
- checkIsStateLast()
- checkIsStatusUsed()