You are here

public function SearchPageFormBase::__construct in Zircon Profile 8

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

Constructs a new search form.

Parameters

\Drupal\Core\Entity\Query\QueryFactory $entity_query: The entity query.

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

File

core/modules/search/src/Form/SearchPageFormBase.php, line 58
Contains \Drupal\search\Form\SearchPageFormBase.

Class

SearchPageFormBase
Provides a base form for search pages.

Namespace

Drupal\search\Form

Code

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