You are here

public function Routes::__construct in JSON:API Search API 8

Instantiates a Routes object.

Parameters

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

\Drupal\jsonapi\ResourceType\ResourceTypeRepositoryInterface $resource_type_repository: The JSON:API resource type repository.

string[] $authentication_providers: The authentication providers, keyed by ID.

string $jsonapi_base_path: The JSON:API base path.

File

src/Routing/Routes.php, line 58

Class

Routes

Namespace

Drupal\jsonapi_search_api\Routing

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, ResourceTypeRepositoryInterface $resource_type_repository, array $authentication_providers, $jsonapi_base_path) {
  $this->entityTypeManager = $entity_type_manager;
  $this->resourceTypeRepository = $resource_type_repository;
  $this->providerIds = array_keys($authentication_providers);
  $this->jsonApiBasePath = $jsonapi_base_path;
}