You are here

public function TeamInvitation::getTeamRoles in Apigee Edge 8

Returns the team roles.

Return value

\Drupal\apigee_edge_teams\Entity\TeamRoleInterface[]|null The team roles or null.

Overrides TeamInvitationInterface::getTeamRoles

1 call to TeamInvitation::getTeamRoles()
TeamInvitation::preSave in modules/apigee_edge_teams/src/Entity/TeamInvitation.php
Acts on an entity before the presave hook is invoked.

File

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

Class

TeamInvitation
Defines the team invitation entity.

Namespace

Drupal\apigee_edge_teams\Entity

Code

public function getTeamRoles() : ?array {
  return $this
    ->get('team_roles')
    ->referencedEntities();
}