NodeRouteContext::$routeMatch

Same name in other branches
  1. 9 core/modules/node/src/ContextProvider/NodeRouteContext.php \Drupal\node\ContextProvider\NodeRouteContext::routeMatch
  2. 8.9.x core/modules/node/src/ContextProvider/NodeRouteContext.php \Drupal\node\ContextProvider\NodeRouteContext::routeMatch
  3. 10 core/modules/node/src/ContextProvider/NodeRouteContext.php \Drupal\node\ContextProvider\NodeRouteContext::routeMatch

The route match object.

Type: \Drupal\Core\Routing\RouteMatchInterface

File

core/modules/node/src/ContextProvider/NodeRouteContext.php, line 26

Class

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

Namespace

Drupal\node\ContextProvider

Code

protected $routeMatch;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.