public function getList()
    {
        $list = parent::getList();

        if ($this->modelClass == Order::class) {
            // Exclude hidden statuses
            $list = $list->exclude('Status', Order::config()->hidden_status); 
            $this->extend('updateList', $list);
        }

        return $list;
    }
public function getList()
    {
        $list = parent::getList();

        if ($this->modelClass == Order::class) {
            // Exclude hidden statuses
            $list = $list->exclude('Status', Order::config()->hidden_status); 
            $this->extend('updateList', $list);
        }

        return $list;
    }
public function getList ( ) { $ list = parent :: getList ( ) ; if ( $ this -> modelClass == Order :: class ) { // Exclude hidden statuses $ list = $ list -> exclude ( 'Status' , Order :: config ( ) -> hidden_status ) ; $ this -> extend ( 'updateList' , $ list ) ; } return $ list ; }
Restrict list to non-hidden statuses
Restrict list to non - hidden statuses