Model/Config/Configuration/Orderstatus.php
public function toOptionArray()
    {
        $statuses = $this->orderConfig->getStatuses();

        $options[] = [
            'label' => __('---- Default Option ----'),
            'value' => '0',
        ];

        foreach ($statuses as $code => $label) {
            $options[] = ['value' => $code, 'label' => $label];
        }

        return $options;
    }
public function toOptionArray()
    {
        $statuses = $this->orderConfig->getStatuses();

        $options[] = [
            'label' => __('---- Default Option ----'),
            'value' => '0',
        ];

        foreach ($statuses as $code => $label) {
            $options[] = ['value' => $code, 'label' => $label];
        }

        return $options;
    }
public function toOptionArray ( ) { $ statuses = $ this -> orderConfig -> getStatuses ( ) ; $ options [ ] = [ 'label' => __ ( '---- Default Option ----' ) , 'value' => '0' , ] ; foreach ( $ statuses as $ code => $ label ) { $ options [ ] = [ 'value' => $ code , 'label' => $ label ] ; } return $ options ; }
Returns the order statuses for field order_statuses.

@return array
Returns the order statuses for field order_statuses .