public function TeamInvitation::setTeam in Apigee Edge 8
Sets the team of the invitation.
Parameters
\Drupal\apigee_edge_teams\Entity\TeamInterface $team: The team entity.
Return value
\Drupal\apigee_edge_teams\Entity\TeamInvitationInterface The invitation.
Overrides TeamInvitationInterface::setTeam
File
- modules/
apigee_edge_teams/ src/ Entity/ TeamInvitation.php, line 169
Class
- TeamInvitation
- Defines the team invitation entity.
Namespace
Drupal\apigee_edge_teams\EntityCode
public function setTeam(TeamInterface $team) : TeamInvitationInterface {
$this
->set('team', [
'target_id' => $team
->id(),
]);
return $this;
}