You are here

public function CustomSearchBlockForm::__construct in Custom Search 8

Constructs a new SearchBlockForm.

Parameters

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

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The Module handler object.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.

File

src/Form/CustomSearchBlockForm.php, line 63

Class

CustomSearchBlockForm
Builds the search form for the search block.

Namespace

Drupal\custom_search\Form

Code

public function __construct(SearchPageRepositoryInterface $search_page_repository, ModuleHandlerInterface $module_handler, EntityTypeManagerInterface $entity_type_manager, EntityRepositoryInterface $entity_repository) {
  $this->searchPageRepository = $search_page_repository;
  $this->moduleHandler = $module_handler;
  $this->entityTypeManager = $entity_type_manager;
  $this->entityRepository = $entity_repository;
}