You are here

public function TeamStatusWarningSubscriber::__construct in Apigee Edge 8

TeamStatusWarningSubscriber constructor.

Parameters

\Drupal\Core\Session\AccountInterface $current_user: The current user.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match service.

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

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

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translations service.

File

modules/apigee_edge_teams/src/EventSubscriber/TeamStatusWarningSubscriber.php, line 86

Class

TeamStatusWarningSubscriber
Displays a warning message on team app pages if app owner is inactive.

Namespace

Drupal\apigee_edge_teams\EventSubscriber

Code

public function __construct(AccountInterface $current_user, RouteMatchInterface $route_match, EntityTypeManagerInterface $entity_type_manager, TeamMembershipManagerInterface $team_membership_manager, MessengerInterface $messenger, TranslationInterface $string_translation) {
  $this->routeMatch = $route_match;
  $this->currentUser = $current_user;
  $this->entityTypeManager = $entity_type_manager;
  $this->messenger = $messenger;
  $this->stringTranslation = $string_translation;
}