You are here

public function Redirect::__construct in Open Social 8.5

Same name and namespace in other branches
  1. 8.9 modules/custom/social_gdpr/src/Subscriber/Redirect.php \Drupal\social_gdpr\Subscriber\Redirect::__construct()
  2. 8.2 modules/custom/social_gdpr/src/Subscriber/Redirect.php \Drupal\social_gdpr\Subscriber\Redirect::__construct()
  3. 8.3 modules/custom/social_gdpr/src/Subscriber/Redirect.php \Drupal\social_gdpr\Subscriber\Redirect::__construct()
  4. 8.4 modules/custom/social_gdpr/src/Subscriber/Redirect.php \Drupal\social_gdpr\Subscriber\Redirect::__construct()
  5. 8.6 modules/custom/social_gdpr/src/Subscriber/Redirect.php \Drupal\social_gdpr\Subscriber\Redirect::__construct()
  6. 8.7 modules/custom/social_gdpr/src/Subscriber/Redirect.php \Drupal\social_gdpr\Subscriber\Redirect::__construct()
  7. 8.8 modules/custom/social_gdpr/src/Subscriber/Redirect.php \Drupal\social_gdpr\Subscriber\Redirect::__construct()
  8. 10.0.x modules/custom/social_gdpr/src/Subscriber/Redirect.php \Drupal\social_gdpr\Subscriber\Redirect::__construct()
  9. 10.1.x modules/custom/social_gdpr/src/Subscriber/Redirect.php \Drupal\social_gdpr\Subscriber\Redirect::__construct()

RedirectSubscriber constructor.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current active route match object.

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

File

modules/custom/social_gdpr/src/Subscriber/Redirect.php, line 42

Class

Redirect
Class Redirect.

Namespace

Drupal\social_gdpr\Subscriber

Code

public function __construct(RouteMatchInterface $route_match, AccountProxyInterface $current_user) {
  $this->routeMatch = $route_match;
  $this->currentUser = $current_user;
}