src/extensions/ExtensibleSearchExtension.php
public function getSearchPage() {

		$pages = ExtensibleSearchPage::get();

		// This is required to support multiple sites.

		if(ClassInfo::exists(Multisites::class)) {
			$pages = $pages->filter('SiteID', $this->owner->SiteID);
		}
		return $pages->first();
	}
public function getSearchPage() {

		$pages = ExtensibleSearchPage::get();

		// This is required to support multiple sites.

		if(ClassInfo::exists(Multisites::class)) {
			$pages = $pages->filter('SiteID', $this->owner->SiteID);
		}
		return $pages->first();
	}
public function getSearchPage ( ) { $ pages = ExtensibleSearchPage :: get ( ) ; // This is required to support multiple sites. if ( ClassInfo :: exists ( Multisites :: class ) ) { $ pages = $ pages -> filter ( 'SiteID' , $ this -> owner -> SiteID ) ; } return $ pages -> first ( ) ; }
Retrieve the search page.

@return extensible search page
Retrieve the search page .