public function TeamMembershipManager::getMembers in Apigee Edge 8
Same name in this branch
- 8 modules/apigee_edge_teams/src/TeamMembershipManager.php \Drupal\apigee_edge_teams\TeamMembershipManager::getMembers()
- 8 modules/apigee_edge_actions/src/TeamMembershipManager.php \Drupal\apigee_edge_actions\TeamMembershipManager::getMembers()
Returns members of a team.
Parameters
string $team: Name of a team.
Return value
string[] Array of developer email addresses.
Overrides TeamMembershipManagerInterface::getMembers
File
- modules/
apigee_edge_teams/ src/ TeamMembershipManager.php, line 111
Class
- TeamMembershipManager
- Service that makes easier to work with company (team) memberships.
Namespace
Drupal\apigee_edge_teamsCode
public function getMembers(string $team) : array {
$controller = $this->companyMembersControllerFactory
->companyMembersController($team);
$members = $controller
->getMembers();
return array_keys($members
->getMembers());
}