You are here

public function TeamMemberRoleStorageInterface::addTeamRoles in Apigee Edge 8

Adds team roles to a developer in a team.

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.

Throws

\Drupal\apigee_edge_teams\Exception\InvalidArgumentException

\Drupal\Core\Entity\EntityStorageException

1 method overrides TeamMemberRoleStorageInterface::addTeamRoles()
TeamMemberRoleStorage::addTeamRoles in modules/apigee_edge_teams/src/Entity/Storage/TeamMemberRoleStorage.php
Adds team roles to a developer in a team.

File

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

Class

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

Namespace

Drupal\apigee_edge_teams\Entity\Storage

Code

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