function SearchPage::searchPageRepository

Same name in other branches
  1. 9 core/modules/search/src/Entity/SearchPage.php \Drupal\search\Entity\SearchPage::searchPageRepository()
  2. 10 core/modules/search/src/Entity/SearchPage.php \Drupal\search\Entity\SearchPage::searchPageRepository()
  3. 11.x 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.

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');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.