You are here

public function SearchPageRoutes::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/search/src/Routing/SearchPageRoutes.php \Drupal\search\Routing\SearchPageRoutes::__construct()

Constructs a new search route subscriber.

Parameters

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

File

core/modules/search/src/Routing/SearchPageRoutes.php, line 33
Contains \Drupal\search\Routing\SearchPageRoutes.

Class

SearchPageRoutes
Provides dynamic routes for search.

Namespace

Drupal\search\Routing

Code

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