Search for to

  1. Search 7.x for to
  2. Search 9.5.x for to
  3. Search 10.3.x for to
  4. Search 11.x for to
  5. Other projects
Title Object type File name Summary
Url::setOption function core/lib/Drupal/Core/Url.php Sets a specific option.
Url::setOptions function core/lib/Drupal/Core/Url.php Sets the URL options.
Url::setUrlGenerator function core/lib/Drupal/Core/Url.php Sets the URL generator.
Url::toRenderArray function core/lib/Drupal/Core/Url.php Returns the route information for a render array.
Url::toString function core/lib/Drupal/Core/Url.php Generates the string URL representation for this Url object.
Url::toUriString function core/lib/Drupal/Core/Url.php Generates a URI string that represents the data in the Url object.
Url::urlGenerator function core/lib/Drupal/Core/Url.php Gets the URL generator.
UrlConversionTest::providerConvertDbUrlToConnectionInfo function core/tests/Drupal/Tests/Core/Database/UrlConversionTest.php Dataprovider for testDbUrltoConnectionConversion().
UrlConversionTest::testDbUrltoConnectionConversion function core/tests/Drupal/Tests/Core/Database/UrlConversionTest.php @covers ::convertDbUrlToConnectionInfo[[api-linebreak]]
UrlGenerator class core/lib/Drupal/Core/Routing/UrlGenerator.php Generates URLs from route names and parameters.
UrlGenerator.php file core/lib/Drupal/Core/Routing/UrlGenerator.php
UrlGenerator::$context property core/lib/Drupal/Core/Routing/UrlGenerator.php
UrlGenerator::$decodedChars property core/lib/Drupal/Core/Routing/UrlGenerator.php Overrides characters that will not be percent-encoded in the path segment.
UrlGenerator::$pathProcessor property core/lib/Drupal/Core/Routing/UrlGenerator.php The path processor to convert the system path to one suitable for urls.
UrlGenerator::$provider property core/lib/Drupal/Core/Routing/UrlGenerator.php The route provider.
UrlGenerator::$requestStack property core/lib/Drupal/Core/Routing/UrlGenerator.php A request stack object.
UrlGenerator::$routeProcessor property core/lib/Drupal/Core/Routing/UrlGenerator.php The route processor.
UrlGenerator::doGenerate function core/lib/Drupal/Core/Routing/UrlGenerator.php Substitute the route parameters into the route path.
UrlGenerator::generate function core/lib/Drupal/Core/Routing/UrlGenerator.php
UrlGenerator::generateFromRoute function core/lib/Drupal/Core/Routing/UrlGenerator.php Generates a URL or path for a specific route based on the given parameters.
UrlGenerator::getContext function core/lib/Drupal/Core/Routing/UrlGenerator.php
UrlGenerator::getInternalPathFromRoute function core/lib/Drupal/Core/Routing/UrlGenerator.php Gets the path of a route.
UrlGenerator::getPathFromRoute function core/lib/Drupal/Core/Routing/UrlGenerator.php Gets the internal path (system path) for a route.
UrlGenerator::getRoute function core/lib/Drupal/Core/Routing/UrlGenerator.php Find the route using the provided route name.
UrlGenerator::getRouteDebugMessage function core/lib/Drupal/Core/Routing/UrlGenerator.php
UrlGenerator::isStrictRequirements function core/lib/Drupal/Core/Routing/UrlGenerator.php
UrlGenerator::processPath function core/lib/Drupal/Core/Routing/UrlGenerator.php Passes the path to a processor manager to allow alterations.
UrlGenerator::processRoute function core/lib/Drupal/Core/Routing/UrlGenerator.php Passes the route to the processor manager for altering before compilation.
UrlGenerator::setContext function core/lib/Drupal/Core/Routing/UrlGenerator.php
UrlGenerator::setStrictRequirements function core/lib/Drupal/Core/Routing/UrlGenerator.php
UrlGenerator::supports function core/lib/Drupal/Core/Routing/UrlGenerator.php
UrlGenerator::__construct function core/lib/Drupal/Core/Routing/UrlGenerator.php Constructs a new generator object.
UrlGeneratorInterface interface core/lib/Drupal/Core/Routing/UrlGeneratorInterface.php Defines an interface for generating a url from a route or system path.
UrlGeneratorInterface.php file core/lib/Drupal/Core/Routing/UrlGeneratorInterface.php
UrlGeneratorInterface::generateFromRoute function core/lib/Drupal/Core/Routing/UrlGeneratorInterface.php Generates a URL or path for a specific route based on the given parameters.
UrlGeneratorInterface::getPathFromRoute function core/lib/Drupal/Core/Routing/UrlGeneratorInterface.php Gets the internal path (system path) for a route.
UrlGeneratorTest class core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php Confirm that the UrlGenerator is functioning properly.
UrlGeneratorTest.php file core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php
UrlGeneratorTest::$aliasManager property core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php The alias manager.
UrlGeneratorTest::$context property core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php The request context.
UrlGeneratorTest::$generator property core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php The url generator to test.
UrlGeneratorTest::$processorManager property core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php The path processor.
UrlGeneratorTest::$provider property core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php The route provider.
UrlGeneratorTest::$requestStack property core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php The request stack.
UrlGeneratorTest::$routeProcessorManager property core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php The mock route processor manager.
UrlGeneratorTest::aliasManagerCallback function core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php Return value callback for the getAliasByPath() method on the mock alias
manager.
UrlGeneratorTest::assertGenerateFromRoute function core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php Asserts \Drupal\Core\Routing\UrlGenerator::generateFromRoute()'s output.
UrlGeneratorTest::providerTestAliasGenerationWithOptions function core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php Provides test data for testAliasGenerationWithOptions.
UrlGeneratorTest::providerTestNoPath function core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php Data provider for ::testNoPath().
UrlGeneratorTest::setUp function core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php

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