function TermRouteContext::__construct
Same name and namespace in other branches
- 11.x core/modules/taxonomy/src/ContextProvider/TermRouteContext.php \Drupal\taxonomy\ContextProvider\TermRouteContext::__construct()
- 10 core/modules/taxonomy/src/ContextProvider/TermRouteContext.php \Drupal\taxonomy\ContextProvider\TermRouteContext::__construct()
- 9 core/modules/taxonomy/src/ContextProvider/TermRouteContext.php \Drupal\taxonomy\ContextProvider\TermRouteContext::__construct()
Constructs a new TermRouteContext.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $routeMatch: The route match object.
File
-
core/
modules/ taxonomy/ src/ ContextProvider/ TermRouteContext.php, line 27
Class
- TermRouteContext
- Sets the current taxonomy term as a context on taxonomy term routes.
Namespace
Drupal\taxonomy\ContextProviderCode
public function __construct(protected RouteMatchInterface $routeMatch) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.