Config
Magento\Sales\Model\Order\Config
What it does
This class manages order status and state configurations in Magento 2.
Developers use it to retrieve available order statuses, get default statuses for specific states, fetch status labels for frontend/backend display, and determine which statuses are visible to customers.
It's essential when working with order workflows, custom status implementations, or displaying order information in different store areas.
Public Methods
- _resetState()
- getStateDefaultStatus()
- getStatusLabel()
- getStatusFrontendLabel()
- getStateLabel()
- getStatuses()
- getStates()
- getStateStatuses()
- getVisibleOnFrontStatuses()
- getInvisibleOnFrontStatuses()
- getStateLabelByStateAndStatus()