You are here

public function TeamMemberRoleStorageInterface::loadByDeveloperAndTeam in Apigee Edge 8

Loads team member role object by developer and team.

WARNING: The fact whether the developer is actually member of the team (company) in Apigee Edge is not being verified here. The caller should perform this check if needed. Thanks for this approach we can minimize the API calls that are being sent to Apigee Edge.

Parameters

\Drupal\Core\Session\AccountInterface $account: User entity object of a developer.

\Drupal\apigee_edge_teams\Entity\TeamInterface $team: Team entity object.

Return value

\Drupal\apigee_edge_teams\Entity\TeamMemberRoleInterface|null Team member role object if the developer has team roles within a team, null otherwise.

1 method overrides TeamMemberRoleStorageInterface::loadByDeveloperAndTeam()
TeamMemberRoleStorage::loadByDeveloperAndTeam in modules/apigee_edge_teams/src/Entity/Storage/TeamMemberRoleStorage.php
Loads team member role object by developer and team.

File

modules/apigee_edge_teams/src/Entity/Storage/TeamMemberRoleStorageInterface.php, line 50

Class

TeamMemberRoleStorageInterface
Defines an interface for team member role entity storage classes.

Namespace

Drupal\apigee_edge_teams\Entity\Storage

Code

public function loadByDeveloperAndTeam(AccountInterface $account, TeamInterface $team) : ?TeamMemberRoleInterface;