protected function TeamAppRouteProvider::getTeamApiKeysRoute in Apigee Edge 8
Gets APpi Keys for team app.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.
Return value
\Symfony\Component\Routing\Route|null The generated route, if available.
1 call to TeamAppRouteProvider::getTeamApiKeysRoute()
- TeamAppRouteProvider::getRoutes in modules/
apigee_edge_teams/ src/ Entity/ TeamAppRouteProvider.php - Provides routes for entities.
File
- modules/
apigee_edge_teams/ src/ Entity/ TeamAppRouteProvider.php, line 150
Class
- TeamAppRouteProvider
- Default entity routes for team apps.
Namespace
Drupal\apigee_edge_teams\EntityCode
protected function getTeamApiKeysRoute(EntityTypeInterface $entity_type) {
if ($entity_type
->hasLinkTemplate('api-keys')) {
$route = new Route($entity_type
->getLinkTemplate('api-keys'));
$route
->setDefault('_controller', TeamAppKeysController::class . '::teamAppKeys');
$route
->setDefault('_title_callback', AppTitleProvider::class . '::title');
$this
->ensureTeamParameter($route);
$route
->setRequirement('_app_access_check_by_app_name', 'view');
return $route;
}
}