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

Breadcrumb

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

function PathMatcher::__construct

Creates a new PathMatcher.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

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

File

core/lib/Drupal/Core/Path/PathMatcher.php, line 57

Class

PathMatcher
Provides a path matcher.

Namespace

Drupal\Core\Path

Code

public function __construct(ConfigFactoryInterface $config_factory, RouteMatchInterface $route_match) {
    $this->configFactory = $config_factory;
    $this->routeMatch = $route_match;
}
RSS feed
Powered by Drupal