You are here

public function TeamMemberRoleStorageInterface::removeTeamRoles in Apigee Edge 8

Removes team roles of a developer within a team.

If you would like to remove a developer from a team (remove its "member" team role) use the team membership manager service.

Parameters

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

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

string[] $roles: Array of team role entity ids.

Return value

\Drupal\apigee_edge_teams\Entity\TeamMemberRoleInterface The updated team member role entity.

1 method overrides TeamMemberRoleStorageInterface::removeTeamRoles()
TeamMemberRoleStorage::removeTeamRoles in modules/apigee_edge_teams/src/Entity/Storage/TeamMemberRoleStorage.php
Removes team roles of a developer within a team.

File

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

Class

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

Namespace

Drupal\apigee_edge_teams\Entity\Storage

Code

public function removeTeamRoles(AccountInterface $account, TeamInterface $team, array $roles) : TeamMemberRoleInterface;