src/Extensions/SearchControllerExtension.php
protected function getResultsTemplate($request)
    {
        $templates = [
            Page::class . '_results',
            Page::class
        ];

        if ($request->getVar('format') == 'rss') {
            array_unshift($templates, Page::class . '_results_rss');
        }

        if ($request->getVar('format') == 'atom') {
            array_unshift($templates, Page::class . '_results_atom');
        }

        return $templates;
    }
protected function getResultsTemplate($request)
    {
        $templates = [
            Page::class . '_results',
            Page::class
        ];

        if ($request->getVar('format') == 'rss') {
            array_unshift($templates, Page::class . '_results_rss');
        }

        if ($request->getVar('format') == 'atom') {
            array_unshift($templates, Page::class . '_results_atom');
        }

        return $templates;
    }
protected function getResultsTemplate ( $ request ) { $ templates = [ Page :: class . '_results' , Page :: class ] ; if ( $ request -> getVar ( 'format' ) == 'rss' ) { array_unshift ( $ templates , Page :: class . '_results_rss' ) ; } if ( $ request -> getVar ( 'format' ) == 'atom' ) { array_unshift ( $ templates , Page :: class . '_results_atom' ) ; } return $ templates ; }
Select the template to render search results with

@param HTTPRequest $request
@return array
Select the template to render search results with