You are here

public function SearchPageRepositoryInterface::setDefaultSearchPage in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/search/src/SearchPageRepositoryInterface.php \Drupal\search\SearchPageRepositoryInterface::setDefaultSearchPage()

Sets a given search page as the default.

Parameters

\Drupal\search\SearchPageInterface $search_page: The search page entity.

Return value

static

1 method overrides SearchPageRepositoryInterface::setDefaultSearchPage()
SearchPageRepository::setDefaultSearchPage in core/modules/search/src/SearchPageRepository.php
Sets a given search page as the default.

File

core/modules/search/src/SearchPageRepositoryInterface.php, line 50

Class

SearchPageRepositoryInterface
Provides the interface for a repository Search Page entities.

Namespace

Drupal\search

Code

public function setDefaultSearchPage(SearchPageInterface $search_page);