You are here

function apigee_edge_teams_help in Apigee Edge 8

Implements hook_help().

File

modules/apigee_edge_teams/apigee_edge_teams.module, line 302
Copyright 2018 Google Inc.

Code

function apigee_edge_teams_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'entity.team_role.collection':
      $member_role = \Drupal::entityTypeManager()
        ->getStorage('team_role')
        ->load(TeamRoleInterface::TEAM_MEMBER_ROLE);
      return '<p>' . t('A role defines a group of users that have certain privileges. These privileges are defined on the <a href=":permissions">Permissions page</a>. Here you can define the names of the team roles on your site. Users who are part of a team have the :member team role, plus any other team roles granted to their user account.', [
        ':permissions' => Url::fromRoute('apigee_edge_teams.settings.team.permissions')
          ->toString(),
        ':member' => $member_role
          ->label(),
      ]) . '</p>';
  }
}