You are here

public function NodeRouteContext::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/node/src/ContextProvider/NodeRouteContext.php \Drupal\node\ContextProvider\NodeRouteContext::__construct()

Constructs a new NodeRouteContext.

Parameters

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

File

core/modules/node/src/ContextProvider/NodeRouteContext.php, line 38
Contains \Drupal\node\ContextProvider\NodeRouteContext.

Class

NodeRouteContext
Sets the current node as a context on node routes.

Namespace

Drupal\node\ContextProvider

Code

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