protected function parseSearchResults($results, $suggestion, $keywords)
    {
        $renderData = parent::parseSearchResults($results, $suggestion, $keywords);

        // adding hook to allow checks or additional data to be passed to the Search Results
        $this->extend('updateParseSearchResults', $renderData);

        return $renderData;
    }
protected function parseSearchResults($results, $suggestion, $keywords)
    {
        $renderData = parent::parseSearchResults($results, $suggestion, $keywords);

        // adding hook to allow checks or additional data to be passed to the Search Results
        $this->extend('updateParseSearchResults', $renderData);

        return $renderData;
    }
protected function parseSearchResults ( $ results , $ suggestion , $ keywords ) { $ renderData = parent :: parseSearchResults ( $ results , $ suggestion , $ keywords ) ; // adding hook to allow checks or additional data to be passed to the Search Results $ this -> extend ( 'updateParseSearchResults' , $ renderData ) ; return $ renderData ; }
Overloading view method purely to provide a hook for others to add extra
checks or pass additional data to the Search Results.

@param array $results
@param array $suggestion
@param string $keywords

@return array
Overloading view method purely to provide a hook for others to add extra checks or pass additional data to the Search Results .