You are here

public function UrlGeneratorInterface::getPathFromRoute in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Routing/UrlGeneratorInterface.php \Drupal\Core\Routing\UrlGeneratorInterface::getPathFromRoute()

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.

3 methods override UrlGeneratorInterface::getPathFromRoute()
MetadataBubblingUrlGenerator::getPathFromRoute in core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php
Gets the internal path (system path) for a route.
SupernovaGenerator::getPathFromRoute in core/modules/help/tests/modules/help_test/src/SupernovaGenerator.php
Gets the internal path (system path) for a route.
UrlGenerator::getPathFromRoute in core/lib/Drupal/Core/Routing/UrlGenerator.php
Gets the internal path (system path) for a route.

File

core/lib/Drupal/Core/Routing/UrlGeneratorInterface.php, line 31
Contains \Drupal\Core\Routing\UrlGeneratorInterface.

Class

UrlGeneratorInterface
Defines an interface for generating a url from a route or system path.

Namespace

Drupal\Core\Routing

Code

public function getPathFromRoute($name, $parameters = array());