You are here

protected function TeamPermissionsForm::getTeamRoles in Apigee Edge 8

Gets the team roles to display in this form.

Return value

\Drupal\apigee_edge_teams\Entity\TeamRoleInterface[] Array of team roles.

1 call to TeamPermissionsForm::getTeamRoles()
TeamPermissionsForm::buildForm in modules/apigee_edge_teams/src/Form/TeamPermissionsForm.php
Form constructor.

File

modules/apigee_edge_teams/src/Form/TeamPermissionsForm.php, line 223

Class

TeamPermissionsForm
Provides a form for configuring team-level permissions for all teams.

Namespace

Drupal\apigee_edge_teams\Form

Code

protected function getTeamRoles() : array {
  return $this->entityTypeManager
    ->getStorage('team_role')
    ->loadMultiple();
}