You are here

protected function NullGenerator::getInternalPathFromRoute in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Routing/NullGenerator.php \Drupal\Core\Routing\NullGenerator::getInternalPathFromRoute()
  2. 9 core/lib/Drupal/Core/Routing/NullGenerator.php \Drupal\Core\Routing\NullGenerator::getInternalPathFromRoute()

File

core/lib/Drupal/Core/Routing/NullGenerator.php, line 54

Class

NullGenerator
No-op implementation of a Url Generator, needed for backward compatibility.

Namespace

Drupal\Core\Routing

Code

protected function getInternalPathFromRoute($name, Route $route, $parameters = [], &$query_params = []) {
  return $route
    ->getPath();
}