public function getEditableRecords()
    {
        $recordType = $this->getRecordType();
        $all = $recordType::get()->filterByCallBack(function (DataObject $obj) {
            return $obj->canEdit();
        });

        return new PaginatedList($all, $this->request);
    }
public function getEditableRecords()
    {
        $recordType = $this->getRecordType();
        $all = $recordType::get()->filterByCallBack(function (DataObject $obj) {
            return $obj->canEdit();
        });

        return new PaginatedList($all, $this->request);
    }
public function getEditableRecords ( ) { $ recordType = $ this -> getRecordType ( ) ; $ all = $ recordType :: get ( ) -> filterByCallBack ( function ( DataObject $ obj ) { return $ obj -> canEdit ( ) ; } ) ; return new PaginatedList ( $ all , $ this -> request ) ; }
Gets all editable records and returns them, paginated

@return PaginatedList
@throws \Exception
Gets all editable records and returns them paginated