UrlGenerator::supports

public UrlGenerator::supports($name) Whether this generator supports the supplied $name. This check does not need to look if the specific instance can be resolved to a route, only whether the router can generate routes from objects of this class. Parameters mixed $name The route "name" which may also be an object or anything: Return value bool Overrides VersatileGeneratorInterface::supports File core/lib/Drupal/Core/Routing/UrlGenerator.php, line 434 Class UrlGenerator Generates URLs fro

UrlGenerator::isStrictRequirements

public UrlGenerator::isStrictRequirements() File core/lib/Drupal/Core/Routing/UrlGenerator.php, line 113 Class UrlGenerator Generates URLs from route names and parameters. Namespace Drupal\Core\Routing Code public function isStrictRequirements() { return TRUE; }

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::processPath

protected UrlGenerator::processPath($path, &$options = array(), BubbleableMetadata $bubbleable_metadata = NULL) Passes the path to a processor manager to allow alterations. File core/lib/Drupal/Core/Routing/UrlGenerator.php, line 374 Class UrlGenerator Generates URLs from route names and parameters. Namespace Drupal\Core\Routing Code protected function processPath($path, &$options = array(), BubbleableMetadata $bubbleable_metadata = NULL) { // Router-based paths may have a qu

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

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::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::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::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::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