You are here

protected function TeamRouteProvider::getListTeamMembersRoute in Apigee Edge 8

Gets the list team members route.

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 TeamRouteProvider::getListTeamMembersRoute()
TeamRouteProvider::getRoutes in modules/apigee_edge_teams/src/Entity/TeamRouteProvider.php
Provides routes for entities.

File

modules/apigee_edge_teams/src/Entity/TeamRouteProvider.php, line 106

Class

TeamRouteProvider
Team specific dynamic entity route provider.

Namespace

Drupal\apigee_edge_teams\Entity

Code

protected function getListTeamMembersRoute(EntityTypeInterface $entity_type) {
  if ($entity_type
    ->hasLinkTemplate('members')) {
    $route = new Route($entity_type
      ->getLinkTemplate('members'));
    $route
      ->setDefault('_controller', TeamMembersList::class . '::overview');
    $route
      ->setDefault('_title_callback', TeamTitleProvider::class . '::teamMembersList');
    $route
      ->setDefault('entity_type_id', $entity_type
      ->id());
    $this
      ->ensureTeamParameter($route);
    $route
      ->setRequirement('_apigee_edge_teams_manage_team_access', 'TRUE');
    return $route;
  }
  return NULL;
}