protected function TeamAppRouteProvider::getCollectionRouteByTeam in Apigee Edge 8
Gets the collection route for a team.
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::getCollectionRouteByTeam()
- 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 130
Class
- TeamAppRouteProvider
- Default entity routes for team apps.
Namespace
Drupal\apigee_edge_teams\EntityCode
protected function getCollectionRouteByTeam(EntityTypeInterface $entity_type) {
if ($entity_type
->hasLinkTemplate('collection-by-team')) {
$route = new Route($entity_type
->getLinkTemplate('collection-by-team'));
$route
->setDefault('_controller', TeamAppListByTeam::class . '::render');
$route
->setDefault('_title_callback', TeamAppListByTeam::class . '::pageTitle');
$this
->ensureTeamParameter($route);
$route
->setRequirement('_apigee_edge_teams_team_app_list_by_team_access', 'TRUE');
return $route;
}
}