protected function _isSearchPage($path, Page $parentPage)
    {
        $ppIsNamedSearch = ($parentPage->pageLang() && $parentPage->pageLang()->url == 'search');
        if ($path == 'search' || $ppIsNamedSearch) {
            return $ppIsNamedSearch ? 0 : 1;
        } else {
            return false;
        }
    }
protected function _isSearchPage($path, Page $parentPage)
    {
        $ppIsNamedSearch = ($parentPage->pageLang() && $parentPage->pageLang()->url == 'search');
        if ($path == 'search' || $ppIsNamedSearch) {
            return $ppIsNamedSearch ? 0 : 1;
        } else {
            return false;
        }
    }
protected function _isSearchPage ( $ path , Page $ parentPage ) { $ ppIsNamedSearch = ( $ parentPage -> pageLang ( ) && $ parentPage -> pageLang ( ) -> url == 'search' ) ; if ( $ path == 'search' || $ ppIsNamedSearch ) { return $ ppIsNamedSearch ? 0 : 1 ; } else { return false ; } }
If a search page returns an additional offset from which segment to take the search query
@param string $path
@param Page $parentPage
@return false|int
If a search page returns an additional offset from which segment to take the search query