You are here

public function SearchApiPageRoutes::__construct in Search API Pages 8

Constructs a new SearchApiRoutes object.

Parameters

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

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

File

src/Routing/SearchApiPageRoutes.php, line 39

Class

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

Namespace

Drupal\search_api_page\Routing

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, LanguageManagerInterface $language_manager) {
  $this->entityTypeManager = $entity_type_manager;
  $this->languageManager = $language_manager;
}