You are here

function hook_apigee_edge_teams_developer_permissions_by_team_alter in Apigee Edge 8

Alters a team member's team permissions within a team.

WARNING: This alter hook gets called even if the developer is not (yet) a member of a team (company) in Apigee Edge. This allows to grant team-level permissions to a developer (Drupal user) to a team without adding it to a team (company) as member in Apigee Edge. (Ex.: for team management purposes, etc.)

Parameters

array $permissions: Array of team permissions.

\Drupal\apigee_edge_teams\Entity\TeamInterface $team: The team entity.

\Drupal\Core\Session\AccountInterface $account: The Drupal user of the developer.

1 function implements hook_apigee_edge_teams_developer_permissions_by_team_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

apigee_edge_teams_test_apigee_edge_teams_developer_permissions_by_team_alter in modules/apigee_edge_teams/tests/modules/apigee_edge_teams_test/apigee_edge_teams_test.module
Implements hook_apigee_edge_teams_developer_permissions_by_team_alter().
1 invocation of hook_apigee_edge_teams_developer_permissions_by_team_alter()
TeamPermissionHandler::getDeveloperPermissionsByTeam in modules/apigee_edge_teams/src/TeamPermissionHandler.php
Returns team permissions of a developer within a team.

File

modules/apigee_edge_teams/apigee_edge_teams.api.php, line 78
Copyright 2018 Google Inc.

Code

function hook_apigee_edge_teams_developer_permissions_by_team_alter(array &$permissions, \Drupal\apigee_edge_teams\Entity\TeamInterface $team, \Drupal\Core\Session\AccountInterface $account) {

  // @see apigee_edge_teams_test_apigee_edge_teams_developer_permissions_by_team_alter()
}