SearchPageRepository::clearDefaultSearchPage

public SearchPageRepository::clearDefaultSearchPage()

Clears the default search page.

Overrides SearchPageRepositoryInterface::clearDefaultSearchPage

File

core/modules/search/src/SearchPageRepository.php, line 91

Class

SearchPageRepository
Provides a repository for Search Page config entities.

Namespace

Drupal\search

Code

public function clearDefaultSearchPage() {
  $this->configFactory->getEditable('search.settings')->clear('default_page')->save();
}
doc_Drupal
2016-10-29 09:40:44
Comments
Leave a Comment

Please login to continue.