public function TeamInvitationSubscriber::__construct in Apigee Edge 8
TeamInvitationSubscriber constructor.
Parameters
\Drupal\Core\Logger\LoggerChannelInterface $logger: The logger channel.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\apigee_edge_teams\TeamMembershipManagerInterface $team_membership_manager: The team membership manager.
\Drupal\apigee_edge_teams\TeamInvitationNotifierInterface $team_invitation_notifier: The team_invitation notifier service.
File
- modules/
apigee_edge_teams/ src/ EventSubscriber/ TeamInvitationSubscriber.php, line 86
Class
- TeamInvitationSubscriber
- Event subscriber for team invitation.
Namespace
Drupal\apigee_edge_teams\EventSubscriberCode
public function __construct(LoggerChannelInterface $logger, EntityTypeManagerInterface $entity_type_manager, TeamMembershipManagerInterface $team_membership_manager, TeamInvitationNotifierInterface $team_invitation_notifier) {
$this->logger = $logger;
$this->teamMembershipManager = $team_membership_manager;
$this->entityTypeManager = $entity_type_manager;
$this->teamMemberRoleStorage = $this->entityTypeManager
->getStorage('team_member_role');
$this->teamInvitationNotifier = $team_invitation_notifier;
}