public function VocabularyContext::__construct in Context Breadcrumb 8
Constructs a new TaxonomyTermRouteContext.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match object.
File
- src/
ContextProvider/ VocabularyContext.php, line 34
Class
- VocabularyContext
- Sets the current taxonomy term as a context on taxonomy term routes.
Namespace
Drupal\context_breadcrumb\ContextProviderCode
public function __construct(RouteMatchInterface $route_match) {
$this->routeMatch = $route_match;
}