public function RngEventRouteContext::__construct in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/ContextProvider/RngEventRouteContext.php \Drupal\rng\ContextProvider\RngEventRouteContext::__construct()
- 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\ContextProviderCode
public function __construct(RouteMatchInterface $route_match, EventManagerInterface $event_manager) {
$this->routeMatch = $route_match;
$this->eventManager = $event_manager;
}