StatusLabel
Magento\Sales\Model\Order\StatusLabel
What it does
This class retrieves and manages order status labels for display in different areas of Magento 2 (frontend, admin, API).
Developers use it to get the correct translated status label based on the current store view and application area, and to mask internal status codes with customer-friendly labels when needed.
It's particularly useful when displaying order statuses to customers or in emails where you need localized, area-appropriate labels.
Public Methods
- getStatusFrontendLabel()
- maskStatusForArea()
- getStatusLabel()