You are here

public function RngEventRouteContext::__construct in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 src/ContextProvider/RngEventRouteContext.php \Drupal\rng\ContextProvider\RngEventRouteContext::__construct()
  2. 3.x src/ContextProvider/RngEventRouteContext.php \Drupal\rng\ContextProvider\RngEventRouteContext::__construct()

Constructs a new RngEventRouteContext.

Parameters

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

\Drupal\rng\EventManagerInterface $event_manager: The RNG event manager.

File

src/ContextProvider/RngEventRouteContext.php, line 43

Class

RngEventRouteContext
Get the current RNG event from the route.

Namespace

Drupal\rng\ContextProvider

Code

public function __construct(RouteMatchInterface $route_match, EventManagerInterface $event_manager) {
  $this->routeMatch = $route_match;
  $this->eventManager = $event_manager;
}