Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TermRouteContext.php

function TermRouteContext::__construct

Constructs a new TermRouteContext.

Parameters

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

File

core/modules/taxonomy/src/ContextProvider/TermRouteContext.php, line 34

Class

TermRouteContext
Sets the current taxonomy term as a context on taxonomy term routes.

Namespace

Drupal\taxonomy\ContextProvider

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal