You are here

private function TeamAppFormTrait::getTeamMemberApiProductAccessHandler in Apigee Edge 8

Allows to access to the injected team member API product access handler.

Return value

\Drupal\apigee_edge_teams\TeamMemberApiProductAccessHandlerInterface The team member API product access handler.

File

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

Class

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

Namespace

Drupal\apigee_edge_teams\Entity\Form

Code

private function getTeamMemberApiProductAccessHandler() : TeamMemberApiProductAccessHandlerInterface {
  if (property_exists($this, 'teamMemberApiProductAccessHandler') && $this->teamMemberApiProductAccessHandler instanceof TeamMemberApiProductAccessHandlerInterface) {
    return $this->teamMemberApiProductAccessHandler;
  }
  return \Drupal::service('apigee_edge_teams.team_member_api_product_access_handler');
}