UrlGenerator::$requestStack

A request stack object. Type: \Symfony\Component\HttpFoundation\RequestStack File core/lib/Drupal/Core/Routing/UrlGenerator.php, line 32 Class UrlGenerator Generates URLs from route names and parameters. Namespace Drupal\Core\Routing Code protected $requestStack;

UrlGenerator::$routeProcessor

The route processor. Type: \Drupal\Core\RouteProcessor\OutboundRouteProcessorInterface File core/lib/Drupal/Core/Routing/UrlGenerator.php, line 46 Class UrlGenerator Generates URLs from route names and parameters. Namespace Drupal\Core\Routing Code protected $routeProcessor;

UrlGenerator::doGenerate

protected UrlGenerator::doGenerate(array $variables, array $defaults, array $tokens, array $parameters, array $query_params, $name) Substitute the route parameters into the route path. Note: This code was copied from \Symfony\Component\Routing\Generator\UrlGenerator::doGenerate() and shortened by removing code that is not relevant to Drupal or that is handled separately in ::generateFromRoute(). The Symfony version should be examined for changes in new Symfony releases. Parameters array $varia

UrlGenerator::generate

public UrlGenerator::generate($name, $parameters = array(), $referenceType = self::ABSOLUTE_PATH) File core/lib/Drupal/Core/Routing/UrlGenerator.php, line 267 Class UrlGenerator Generates URLs from route names and parameters. Namespace Drupal\Core\Routing Code public function generate($name, $parameters = array(), $referenceType = self::ABSOLUTE_PATH) { $options['absolute'] = is_bool($referenceType) ? $referenceType : $referenceType === self::ABSOLUTE_URL; return $this->generate

UrlGenerator::generateFromRoute

public UrlGenerator::generateFromRoute($name, $parameters = array(), $options = array(), $collect_bubbleable_metadata = FALSE) Generates a URL or path for a specific route based on the given parameters. Parameters that reference placeholders in the route pattern will be substituted for them in the pattern. Extra params are added as query strings to the URL. @internal Should not be used in user code. Use \Drupal\Core\Url instead. Parameters string|\Symfony\Component\Routing\Route $name: The rou

UrlGenerator::getContext

public UrlGenerator::getContext() File core/lib/Drupal/Core/Routing/UrlGenerator.php, line 99 Class UrlGenerator Generates URLs from route names and parameters. Namespace Drupal\Core\Routing Code public function getContext() { return $this->context; }

UrlGenerator::getInternalPathFromRoute

protected UrlGenerator::getInternalPathFromRoute($name, SymfonyRoute $route, $parameters = array(), $query_params = array()) Gets the path of a route. Parameters $name: The route name or other debug message. \Symfony\Component\Routing\Route $route: The route object. array $parameters: An array of parameters as passed to \Symfony\Component\Routing\Generator\UrlGeneratorInterface::generate(). array $query_params: An array of query string parameter, which will get any extra values from $parameter

UrlGenerator::getPathFromRoute

public UrlGenerator::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/Routing/Url

UrlGenerator::getRoute

protected UrlGenerator::getRoute($name) Find the route using the provided route name. Parameters string|\Symfony\Component\Routing\Route $name: The route name or a route object. Return value \Symfony\Component\Routing\Route The found route. Throws \Symfony\Component\Routing\Exception\RouteNotFoundException Thrown if there is no route with that name in this repository. See also \Drupal\Core\Routing\RouteProviderInterface File core/lib/Drupal/Core/Routing/UrlGenerator.php, line 421 Class

UrlGenerator::getRouteDebugMessage

public UrlGenerator::getRouteDebugMessage($name, array $parameters = array()) Convert a route identifier (name, content object etc) into a string usable for logging and other debug/error messages. Parameters mixed $name: array $parameters which should contain a content field containing: a RouteReferrersReadInterface object Return value string Overrides VersatileGeneratorInterface::getRouteDebugMessage File core/lib/Drupal/Core/Routing/UrlGenerator.php, line 442 Class UrlGenerator Generat