You are here

public function TeamInvitation::setTeamRoles in Apigee Edge 8

Sets the team roles of the invitation.

Parameters

\Drupal\apigee_edge_teams\Entity\TeamRoleInterface[] $team_roles: An array of team roles.

Return value

\Drupal\apigee_edge_teams\Entity\TeamInvitationInterface The invitation.

Overrides TeamInvitationInterface::setTeamRoles

File

modules/apigee_edge_teams/src/Entity/TeamInvitation.php, line 214

Class

TeamInvitation
Defines the team invitation entity.

Namespace

Drupal\apigee_edge_teams\Entity

Code

public function setTeamRoles(array $team_roles) : TeamInvitationInterface {
  $this
    ->set('team_roles', $team_roles);
  return $this;
}