function SearchPageRoutes::__construct
Same name in other branches
- 8.9.x core/modules/search/src/Routing/SearchPageRoutes.php \Drupal\search\Routing\SearchPageRoutes::__construct()
- 10 core/modules/search/src/Routing/SearchPageRoutes.php \Drupal\search\Routing\SearchPageRoutes::__construct()
- 11.x 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 28
Class
- SearchPageRoutes
- Provides dynamic routes for search.
Namespace
Drupal\search\RoutingCode
public function __construct(SearchPageRepositoryInterface $search_page_repository) {
$this->searchPageRepository = $search_page_repository;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.