You are here

public function TeamInactiveStatusSubscriber::__construct in Apigee Edge 8

TeamInactiveStatusSubscriber constructor.

Parameters

\Drupal\Core\DependencyInjection\ClassResolverInterface $class_resolver: The class resolver service.

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

array $main_content_renderers: The available main content renderer service IDs.

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

File

modules/apigee_edge_teams/src/EventSubscriber/TeamInactiveStatusSubscriber.php, line 80

Class

TeamInactiveStatusSubscriber
Displays an error message on team pages if team is inactive.

Namespace

Drupal\apigee_edge_teams\EventSubscriber

Code

public function __construct(ClassResolverInterface $class_resolver, RouteMatchInterface $route_match, array $main_content_renderers, AccountInterface $current_user) {
  $this->classResolver = $class_resolver;
  $this->routeMatch = $route_match;
  $this->mainContentRenderers = $main_content_renderers;
  $this->currentUser = $current_user;
}