public function getFilteredRecordList($gridfield)
    {
        $list = $gridfield->getList();

        foreach ($gridfield->getComponents() as $item) {
            if ($item instanceof GridField_DataManipulator && !$item instanceof GridFieldPaginator) {
                $list = $item->getManipulatedData($gridfield, $list);
            }
        }

        return $list;
    }
public function getFilteredRecordList($gridfield)
    {
        $list = $gridfield->getList();

        foreach ($gridfield->getComponents() as $item) {
            if ($item instanceof GridField_DataManipulator && !$item instanceof GridFieldPaginator) {
                $list = $item->getManipulatedData($gridfield, $list);
            }
        }

        return $list;
    }
public function getFilteredRecordList ( $ gridfield ) { $ list = $ gridfield -> getList ( ) ; foreach ( $ gridfield -> getComponents ( ) as $ item ) { if ( $ item instanceof GridField_DataManipulator && ! $ item instanceof GridFieldPaginator ) { $ list = $ item -> getManipulatedData ( $ gridfield , $ list ) ; } } return $ list ; }
To get the entire list of records with the potential filters
we need to remove the pagination but apply all other filters
To get the entire list of records with the potential filters we need to remove the pagination but apply all other filters