public function SearchPageRepository::clearDefaultSearchPage in Drupal 10
Same name and namespace in other branches
- 8 core/modules/search/src/SearchPageRepository.php \Drupal\search\SearchPageRepository::clearDefaultSearchPage()
- 9 core/modules/search/src/SearchPageRepository.php \Drupal\search\SearchPageRepository::clearDefaultSearchPage()
File
- core/
modules/ search/ src/ SearchPageRepository.php, line 91
Class
- SearchPageRepository
- Provides a repository for Search Page config entities.
Namespace
Drupal\searchCode
public function clearDefaultSearchPage() {
$this->configFactory
->getEditable('search.settings')
->clear('default_page')
->save();
}