Magento 2:
I need to fetch all order status labels list (Ex. Processing, Pending, Complete…) in my custom module configuration settings.
I have searched a lot but they give result of sales orders label. But I need all order status labels.
Please take a look on screen shot. I want this red box order status labels. So admin can select multiple order status for further task.
Best Answer
Try below code to get all the Order State and Status code.
Hope this helps you.