protected function LegacyUrlMatcher::matchDrupalItem

Get a Drupal menu item.

@todo Make this return multiple possible candidates for the resolver to consider.

Parameters

string $path: The path being looked up by

1 call to LegacyUrlMatcher::matchDrupalItem()
LegacyUrlMatcher::matchRequest in drupal/core/lib/Drupal/Core/LegacyUrlMatcher.php
@api

File

drupal/core/lib/Drupal/Core/LegacyUrlMatcher.php, line 131
Definition of Drupal\Core\LegacyUrlMatcher.

Class

LegacyUrlMatcher
UrlMatcher matches URL based on a set of routes.

Namespace

Drupal\Core

Code

protected function matchDrupalItem($path) {

  // For now we can just proxy our procedural method. At some point this will
  // become more complicated because we'll need to get back candidates for a
  // path and them resolve them based on things like method and scheme which
  // we currently can't do.
  return menu_get_item($path);
}