public function SearchPageFormBase::__construct in Drupal 9
Same name and namespace in other branches
- 8 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\FormCode
public function __construct(SearchPageRepositoryInterface $search_page_repository) {
$this->searchPageRepository = $search_page_repository;
}