You are here

public function AddTeamMembersForm::__construct in Apigee Edge 8

AddTeamMemberForms constructor.

Parameters

\Drupal\apigee_edge_teams\TeamMembershipManagerInterface $team_membership_manager: The team membership manager service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

Overrides TeamMembersFormBase::__construct

File

modules/apigee_edge_teams/src/Form/AddTeamMembersForm.php, line 65

Class

AddTeamMembersForm
Add team members form.

Namespace

Drupal\apigee_edge_teams\Form

Code

public function __construct(TeamMembershipManagerInterface $team_membership_manager, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($entity_type_manager);
  $this->teamMembershipManager = $team_membership_manager;
  $this->userStorage = $entity_type_manager
    ->getStorage('user');
  $this->teamInvitationStorage = $entity_type_manager
    ->getStorage('team_invitation');
}