src/CwpSearchPageController.php
protected function generateSearchRecord()
    {
        $searchPage = CwpSearchPage::create();
        $searchPage->URLSegment = 'search';
        $searchPage->Title = _t('SilverStripe\\CMS\\Search\\SearchForm.SearchResults', 'Search Results');
        $searchPage->ID = -1;
        return $searchPage;
    }
protected function generateSearchRecord()
    {
        $searchPage = CwpSearchPage::create();
        $searchPage->URLSegment = 'search';
        $searchPage->Title = _t('SilverStripe\\CMS\\Search\\SearchForm.SearchResults', 'Search Results');
        $searchPage->ID = -1;
        return $searchPage;
    }
protected function generateSearchRecord ( ) { $ searchPage = CwpSearchPage :: create ( ) ; $ searchPage -> URLSegment = 'search' ; $ searchPage -> Title = _t ( 'SilverStripe\\CMS\\Search\\SearchForm.SearchResults' , 'Search Results' ) ; $ searchPage -> ID = - 1 ; return $ searchPage ; }
Create the dummy search record for this page

@return CwpSearchPage
Create the dummy search record for this page