public function RedirectSubscriber::__construct in Open Social 8.6
Same name in this branch
- 8.6 modules/social_features/social_search/src/EventSubscriber/RedirectSubscriber.php \Drupal\social_search\EventSubscriber\RedirectSubscriber::__construct()
- 8.6 modules/social_features/social_user/src/EventSubscriber/RedirectSubscriber.php \Drupal\social_user\EventSubscriber\RedirectSubscriber::__construct()
- 8.6 modules/social_features/social_group/modules/social_group_quickjoin/src/EventSubscriber/RedirectSubscriber.php \Drupal\social_group_quickjoin\EventSubscriber\RedirectSubscriber::__construct()
- 8.6 modules/social_features/social_group/modules/social_group_default_route/src/EventSubscriber/RedirectSubscriber.php \Drupal\social_group_default_route\EventSubscriber\RedirectSubscriber::__construct()
Same name and namespace in other branches
- 8.9 modules/social_features/social_search/src/EventSubscriber/RedirectSubscriber.php \Drupal\social_search\EventSubscriber\RedirectSubscriber::__construct()
- 8.7 modules/social_features/social_search/src/EventSubscriber/RedirectSubscriber.php \Drupal\social_search\EventSubscriber\RedirectSubscriber::__construct()
- 8.8 modules/social_features/social_search/src/EventSubscriber/RedirectSubscriber.php \Drupal\social_search\EventSubscriber\RedirectSubscriber::__construct()
- 10.3.x modules/social_features/social_search/src/EventSubscriber/RedirectSubscriber.php \Drupal\social_search\EventSubscriber\RedirectSubscriber::__construct()
- 10.0.x modules/social_features/social_search/src/EventSubscriber/RedirectSubscriber.php \Drupal\social_search\EventSubscriber\RedirectSubscriber::__construct()
- 10.1.x modules/social_features/social_search/src/EventSubscriber/RedirectSubscriber.php \Drupal\social_search\EventSubscriber\RedirectSubscriber::__construct()
- 10.2.x modules/social_features/social_search/src/EventSubscriber/RedirectSubscriber.php \Drupal\social_search\EventSubscriber\RedirectSubscriber::__construct()
Redirectsubscriber construct.
Parameters
\Drupal\Core\Routing\CurrentRouteMatch $route_match: The current route.
\Drupal\Core\Session\AccountProxy $current_user: The current user.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config object.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
File
- modules/
social_features/ social_search/ src/ EventSubscriber/ RedirectSubscriber.php, line 66
Class
- RedirectSubscriber
- Class RedirectSubscriber.
Namespace
Drupal\social_search\EventSubscriberCode
public function __construct(CurrentRouteMatch $route_match, AccountProxy $current_user, ConfigFactoryInterface $config_factory, RequestStack $request_stack) {
$this->currentRoute = $route_match;
$this->currentUser = $current_user;
$this->configFactory = $config_factory;
$this->requestStack = $request_stack;
}