function SearchPageRepositoryInterface::setDefaultSearchPage
Same name in other branches
- 9 core/modules/search/src/SearchPageRepositoryInterface.php \Drupal\search\SearchPageRepositoryInterface::setDefaultSearchPage()
- 10 core/modules/search/src/SearchPageRepositoryInterface.php \Drupal\search\SearchPageRepositoryInterface::setDefaultSearchPage()
- 11.x 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\searchCode
public function setDefaultSearchPage(SearchPageInterface $search_page);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.