You are here

public function DeveloperStatusWarningSubscriber::__construct in Apigee Edge 8

DeveloperStatusWarningSubscriber 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\Core\Messenger\MessengerInterface $messenger: The messenger service.

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

File

src/EventSubscriber/DeveloperStatusWarningSubscriber.php, line 84

Class

DeveloperStatusWarningSubscriber
Displays a warning message on developer app pages if app owner is inactive.

Namespace

Drupal\apigee_edge\EventSubscriber

Code

public function __construct(AccountInterface $current_user, RouteMatchInterface $route_match, EntityTypeManagerInterface $entity_type_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;
}