code/Report.php
protected function getSourceParams()
    {
        $params = [];
        if (Injector::inst()->has(HTTPRequest::class)) {
            /** @var HTTPRequest $request */
            $request = Injector::inst()->get(HTTPRequest::class);
            $params = $request->param('filters') ?: $request->requestVar('filters') ?: [];
        }

        $this->extend('updateSourceParams', $params);

        return $params;
    }
protected function getSourceParams()
    {
        $params = [];
        if (Injector::inst()->has(HTTPRequest::class)) {
            /** @var HTTPRequest $request */
            $request = Injector::inst()->get(HTTPRequest::class);
            $params = $request->param('filters') ?: $request->requestVar('filters') ?: [];
        }

        $this->extend('updateSourceParams', $params);

        return $params;
    }
protected function getSourceParams ( ) { $ params = [ ] ; if ( Injector :: inst ( ) -> has ( HTTPRequest :: class ) ) { /** @var HTTPRequest $request */ $ request = Injector :: inst ( ) -> get ( HTTPRequest :: class ) ; $ params = $ request -> param ( 'filters' ) ? : $ request -> requestVar ( 'filters' ) ? : [ ] ; } $ this -> extend ( 'updateSourceParams' , $ params ) ; return $ params ; }
Get source params for the report to filter by

@return array
Get source params for the report to filter by