You are here

public function TeamMembershipManager::addMembers in Apigee Edge 8

Same name in this branch
  1. 8 modules/apigee_edge_teams/src/TeamMembershipManager.php \Drupal\apigee_edge_teams\TeamMembershipManager::addMembers()
  2. 8 modules/apigee_edge_actions/src/TeamMembershipManager.php \Drupal\apigee_edge_actions\TeamMembershipManager::addMembers()

Adds members to a team.

Parameters

string $team: Name of a team.

array $developers: Array of developer email addresses.

Overrides TeamMembershipManagerInterface::addMembers

File

modules/apigee_edge_actions/src/TeamMembershipManager.php, line 136

Class

TeamMembershipManager
Decorates the apigee_edge_teams.team_membership_manager service.

Namespace

Drupal\apigee_edge_actions

Code

public function addMembers(string $team, array $developers) : void {
  $this->inner
    ->addMembers($team, $developers);
  $this
    ->dispatchEvent('apigee_edge_actions_entity_add_member:team', $team, $developers);
}