You are here

public function SearchPageRepository::clearDefaultSearchPage in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/search/src/SearchPageRepository.php \Drupal\search\SearchPageRepository::clearDefaultSearchPage()

Clears the default search page.

Overrides SearchPageRepositoryInterface::clearDefaultSearchPage

File

core/modules/search/src/SearchPageRepository.php, line 96
Contains \Drupal\search\SearchPageRepository.

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