function MetadataBubblingUrlGenerator::getPathFromRoute

Same name in other branches
  1. 9 core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php \Drupal\Core\Render\MetadataBubblingUrlGenerator::getPathFromRoute()
  2. 8.9.x core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php \Drupal\Core\Render\MetadataBubblingUrlGenerator::getPathFromRoute()
  3. 10 core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php \Drupal\Core\Render\MetadataBubblingUrlGenerator::getPathFromRoute()

Overrides UrlGeneratorInterface::getPathFromRoute

File

core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php, line 67

Class

MetadataBubblingUrlGenerator
Decorator for the URL generator, which bubbles bubbleable URL metadata.

Namespace

Drupal\Core\Render

Code

public function getPathFromRoute(string $name, array $parameters = []) {
    return $this->urlGenerator
        ->getPathFromRoute($name, $parameters);
}

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