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

Breadcrumb

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

function UrlMatcher::__construct

Same name in this branch
  1. 11.1.x vendor/symfony/routing/Matcher/UrlMatcher.php \Symfony\Component\Routing\Matcher\UrlMatcher::__construct()

Constructs a new UrlMatcher.

The parent class has a constructor we need to skip, so just override it with a no-op.

Parameters

\Drupal\Core\Path\CurrentPathStack $current_path: The current path.

Overrides UrlMatcher::__construct

2 calls to UrlMatcher::__construct()
Router::__construct in core/lib/Drupal/Core/Routing/Router.php
Constructs a new Router.
Router::__construct in core/lib/Drupal/Core/Routing/Router.php
Constructs a new Router.
1 method overrides UrlMatcher::__construct()
Router::__construct in core/lib/Drupal/Core/Routing/Router.php
Constructs a new Router.

File

core/lib/Drupal/Core/Routing/UrlMatcher.php, line 32

Class

UrlMatcher
Drupal-specific URL Matcher; handles the Drupal "system path" mapping.

Namespace

Drupal\Core\Routing

Code

public function __construct(CurrentPathStack $current_path) {
    $this->currentPath = $current_path;
}

API Navigation

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