function SearchPageFormBase::__construct

Same name in other branches
  1. 9 core/modules/search/src/Form/SearchPageFormBase.php \Drupal\search\Form\SearchPageFormBase::__construct()
  2. 10 core/modules/search/src/Form/SearchPageFormBase.php \Drupal\search\Form\SearchPageFormBase::__construct()
  3. 11.x core/modules/search/src/Form/SearchPageFormBase.php \Drupal\search\Form\SearchPageFormBase::__construct()

Constructs a new search form.

Parameters

\Drupal\search\SearchPageRepositoryInterface $search_page_repository: The search page repository.

File

core/modules/search/src/Form/SearchPageFormBase.php, line 43

Class

SearchPageFormBase
Provides a base form for search pages.

Namespace

Drupal\search\Form

Code

public function __construct(SearchPageRepositoryInterface $search_page_repository) {
    $this->searchPageRepository = $search_page_repository;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.