SearchPageFormBase::__construct

public SearchPageFormBase::__construct(QueryFactory $entity_query, SearchPageRepositoryInterface $search_page_repository)

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 53

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;
}
doc_Drupal
2016-10-29 09:40:36
Comments
Leave a Comment

Please login to continue.