public function Redirect::__construct in Open Social 8.9
Same name and namespace in other branches
- 8.2 modules/custom/social_gdpr/src/Subscriber/Redirect.php \Drupal\social_gdpr\Subscriber\Redirect::__construct()
- 8.3 modules/custom/social_gdpr/src/Subscriber/Redirect.php \Drupal\social_gdpr\Subscriber\Redirect::__construct()
- 8.4 modules/custom/social_gdpr/src/Subscriber/Redirect.php \Drupal\social_gdpr\Subscriber\Redirect::__construct()
- 8.5 modules/custom/social_gdpr/src/Subscriber/Redirect.php \Drupal\social_gdpr\Subscriber\Redirect::__construct()
- 8.6 modules/custom/social_gdpr/src/Subscriber/Redirect.php \Drupal\social_gdpr\Subscriber\Redirect::__construct()
- 8.7 modules/custom/social_gdpr/src/Subscriber/Redirect.php \Drupal\social_gdpr\Subscriber\Redirect::__construct()
- 8.8 modules/custom/social_gdpr/src/Subscriber/Redirect.php \Drupal\social_gdpr\Subscriber\Redirect::__construct()
- 10.0.x modules/custom/social_gdpr/src/Subscriber/Redirect.php \Drupal\social_gdpr\Subscriber\Redirect::__construct()
- 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\SubscriberCode
public function __construct(RouteMatchInterface $route_match, AccountProxyInterface $current_user) {
$this->routeMatch = $route_match;
$this->currentUser = $current_user;
}