function PathMatcher::__construct

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Path/PathMatcher.php \Drupal\Core\Path\PathMatcher::__construct()
  2. 10 core/lib/Drupal/Core/Path/PathMatcher.php \Drupal\Core\Path\PathMatcher::__construct()
  3. 9 core/lib/Drupal/Core/Path/PathMatcher.php \Drupal\Core\Path\PathMatcher::__construct()
  4. 8.9.x core/lib/Drupal/Core/Path/PathMatcher.php \Drupal\Core\Path\PathMatcher::__construct()

Creates a new PathMatcher.

Parameters

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

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

File

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

Class

PathMatcher
Provides a path matcher.

Namespace

Drupal\Core\Path

Code

public function __construct(protected ConfigFactoryInterface $configFactory, protected RouteMatchInterface $routeMatch) {
}

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