SearchPage::isDefaultSearch

public SearchPage::isDefaultSearch()

Determines if this search page entity is currently the default search.

Return value

bool TRUE if this search page entity is the default search, FALSE otherwise.

Overrides SearchPageInterface::isDefaultSearch

File

core/modules/search/src/Entity/SearchPage.php, line 153

Class

SearchPage
Defines a configured search page.

Namespace

Drupal\search\Entity

Code

public function isDefaultSearch() {
  return $this->searchPageRepository()->getDefaultSearchPage() == $this->id();
}
doc_Drupal
2016-10-29 09:40:20
Comments
Leave a Comment

Please login to continue.