You are here

public function TeamMemberRole::getTeam in Apigee Edge 8

Returns the team entity.

Return value

\Drupal\apigee_edge_teams\Entity\TeamInterface|null The team entity or null if the entity is new and it has not been set yet.

Overrides TeamMemberRoleInterface::getTeam

1 call to TeamMemberRole::getTeam()
TeamMemberRole::getCacheTags in modules/apigee_edge_teams/src/Entity/TeamMemberRole.php
The cache tags associated with this object.

File

modules/apigee_edge_teams/src/Entity/TeamMemberRole.php, line 120

Class

TeamMemberRole
Defines the team member role entity.

Namespace

Drupal\apigee_edge_teams\Entity

Code

public function getTeam() : ?TeamInterface {
  return $this
    ->get('team')->entity;
}