You are here

private function TeamAppFormTrait::getTeamMembershipMananger in Apigee Edge 8

Allows to access to the injected team membership manager.

Return value

\Drupal\apigee_edge_teams\TeamMembershipManagerInterface The team membership manager.

File

modules/apigee_edge_teams/src/Entity/Form/TeamAppFormTrait.php, line 135

Class

TeamAppFormTrait
Helper trait that contains team app (create/edit) form specific tweaks.

Namespace

Drupal\apigee_edge_teams\Entity\Form

Code

private function getTeamMembershipMananger() : TeamMembershipManagerInterface {
  if (property_exists($this, 'teamMembershipManager') && $this->teamMembershipManager instanceof TeamMembershipManagerInterface) {
    return $this->teamMembershipManager;
  }
  return \Drupal::service('apigee_edge_teams.team_membership_manager');
}