You are here

public function EventSubscribers::__construct in Open Social 10.3.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_group/modules/social_group_invite/src/EventSubscriber/EventSubscribers.php \Drupal\social_group_invite\EventSubscriber\EventSubscribers::__construct()
  2. 10.0.x modules/social_features/social_group/modules/social_group_invite/src/EventSubscriber/EventSubscribers.php \Drupal\social_group_invite\EventSubscriber\EventSubscribers::__construct()
  3. 10.1.x modules/social_features/social_group/modules/social_group_invite/src/EventSubscriber/EventSubscribers.php \Drupal\social_group_invite\EventSubscriber\EventSubscribers::__construct()
  4. 10.2.x modules/social_features/social_group/modules/social_group_invite/src/EventSubscriber/EventSubscribers.php \Drupal\social_group_invite\EventSubscriber\EventSubscribers::__construct()

CustomRedirects construct.

Parameters

\Drupal\Core\Routing\CurrentRouteMatch $route_match: The current route.

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

File

modules/social_features/social_group/modules/social_group_invite/src/EventSubscriber/EventSubscribers.php, line 47

Class

EventSubscribers
Class CustomRedirects.

Namespace

Drupal\social_group_invite\EventSubscriber

Code

public function __construct(CurrentRouteMatch $route_match, AccountProxy $current_user) {
  $this->currentRoute = $route_match;
  $this->currentUser = $current_user;
}