You are here

public function SearchApiFederatedSolrRoutes::__construct in Search API Federated Solr 8

Same name and namespace in other branches
  1. 8.3 src/Routing/SearchApiFederatedSolrRoutes.php \Drupal\search_api_federated_solr\Routing\SearchApiFederatedSolrRoutes::__construct()
  2. 8.2 src/Routing/SearchApiFederatedSolrRoutes.php \Drupal\search_api_federated_solr\Routing\SearchApiFederatedSolrRoutes::__construct()
  3. 4.x src/Routing/SearchApiFederatedSolrRoutes.php \Drupal\search_api_federated_solr\Routing\SearchApiFederatedSolrRoutes::__construct()

Constructs a new SearchApiRoutes object.

Parameters

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager service.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager service.

File

src/Routing/SearchApiFederatedSolrRoutes.php, line 43
Contains Drupal\search_api_federated_solr\Routing\SearchApiFederatedSolrRoutes.

Class

SearchApiFederatedSolrRoutes
Defines a route subscriber to register a url for serving search pages.

Namespace

Drupal\search_api_federated_solr\Routing

Code

public function __construct(EntityManagerInterface $entity_manager, LanguageManagerInterface $language_manager) {
  $this->entityManager = $entity_manager;
  $this->languageManager = $language_manager;
}