You are here

protected function SearchPage::searchPageRepository in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/search/src/Entity/SearchPage.php \Drupal\search\Entity\SearchPage::searchPageRepository()
  2. 9 core/modules/search/src/Entity/SearchPage.php \Drupal\search\Entity\SearchPage::searchPageRepository()

Wraps the search page repository.

Return value

\Drupal\search\SearchPageRepositoryInterface A search page repository object.

1 call to SearchPage::searchPageRepository()
SearchPage::isDefaultSearch in core/modules/search/src/Entity/SearchPage.php
Determines if this search page entity is currently the default search.

File

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

Class

SearchPage
Defines a configured search page.

Namespace

Drupal\search\Entity

Code

protected function searchPageRepository() {
  return \Drupal::service('search.search_page_repository');
}