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(); }
Please login to continue.