You are here

public function RouteParamContext::__construct in Page Manager 8.4

Same name and namespace in other branches
  1. 8 src/EventSubscriber/RouteParamContext.php \Drupal\page_manager\EventSubscriber\RouteParamContext::__construct()

Constructs a new CurrentUserContext.

Parameters

\Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

File

src/EventSubscriber/RouteParamContext.php, line 44

Class

RouteParamContext
Sets values from the route parameters as a context.

Namespace

Drupal\page_manager\EventSubscriber

Code

public function __construct(RouteProviderInterface $route_provider, RequestStack $request_stack) {
  $this->routeProvider = $route_provider;
  $this->requestStack = $request_stack;
}