You are here

public function HookMenu::getDestinationRoute in Drupal 7 to 8/9 Module Upgrader 8

Returns the destination route for the given source path.

Parameters

string $path: The source path, as defined in hook_menu().

Return value

\Drupal\drupalmoduleupgrader\Routing\Drupal8\RouteWrapper|null The destination route.

File

src/Routing/HookMenu.php, line 121

Class

HookMenu
This class is a conversion map for hook_menu().

Namespace

Drupal\drupalmoduleupgrader\Routing

Code

public function getDestinationRoute($path) {
  return $this
    ->getDestinationRoutes()
    ->get($this->routeMap[$path]);
}