MetadataBubblingUrlGenerator::getPathFromRoute

public MetadataBubblingUrlGenerator::getPathFromRoute($name, $parameters = array())

Gets the internal path (system path) for a route.

Parameters

string|\Symfony\Component\Routing\Route $name: The route name or a route object.

array $parameters: An array of parameters as passed to \Symfony\Component\Routing\Generator\UrlGeneratorInterface::generate().

Return value

string The internal Drupal path corresponding to the route.

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($name, $parameters = array()) {
  return $this->urlGenerator->getPathFromRoute($name, $parameters);
}
doc_Drupal
2016-10-29 09:28:22
Comments
Leave a Comment

Please login to continue.