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
UrlGeneratorTest::testAbsoluteURLGeneration function core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php Confirms that absolute URLs work with generated routes.
UrlGeneratorTest::testAbsoluteURLGenerationUsingInterfaceConstants function core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php Confirms that absolute URLs work with generated routes using interface constants.
UrlGeneratorTest::testAliasGeneration function core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php Confirms that generated routes will have aliased paths.
UrlGeneratorTest::testAliasGenerationUsingInterfaceConstants function core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php Confirms that generated routes will have aliased paths using interface constants.
UrlGeneratorTest::testAliasGenerationWithOptions function core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php Confirms that generated routes will have aliased paths with options.
UrlGeneratorTest::testAliasGenerationWithParameters function core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php Confirms that generated routes will have aliased paths.
UrlGeneratorTest::testBaseURLGeneration function core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php Confirms that explicitly setting the base_url works with generated routes
UrlGeneratorTest::testGenerateWithPathProcessorChangingQueryParameter function core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php @covers \Drupal\Core\Routing\UrlGenerator::generateFromRoute[[api-linebreak]]
UrlGeneratorTest::testGetPathFromRouteTrailing function core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php Tests URL generation from route with trailing start and end slashes.
UrlGeneratorTest::testGetPathFromRouteWithSubdirectory function core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php Tests URL generation in a subdirectory.
UrlGeneratorTest::testNoPath function core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php Tests generating a relative URL with no path.
UrlGeneratorTest::testUrlGenerationWithDisabledPathProcessing function core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php @covers ::generateFromRoute[[api-linebreak]]
UrlGeneratorTest::testUrlGenerationWithDisabledPathProcessingByRoute function core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php @covers ::generateFromRoute[[api-linebreak]]
UrlGeneratorTest::testUrlGenerationWithDisabledPathProcessingByRouteAndOptedInPathProcessing function core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php @covers ::generateFromRoute[[api-linebreak]]
UrlGeneratorTest::testUrlGenerationWithHttpsRequirement function core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php Test that the 'scheme' route requirement is respected during url generation.
UrlGeneratorTrait trait core/lib/Drupal/Core/Routing/UrlGeneratorTrait.php Wrapper methods for the Url Generator.
UrlGeneratorTrait.php file core/lib/Drupal/Core/Routing/UrlGeneratorTrait.php
UrlGeneratorTrait::$urlGenerator property core/lib/Drupal/Core/Routing/UrlGeneratorTrait.php The url generator.
UrlGeneratorTrait::getUrlGenerator function core/lib/Drupal/Core/Routing/UrlGeneratorTrait.php Returns the URL generator service.
UrlGeneratorTrait::redirect function core/lib/Drupal/Core/Routing/UrlGeneratorTrait.php Returns a redirect response object for the specified route.
UrlGeneratorTrait::setUrlGenerator function core/lib/Drupal/Core/Routing/UrlGeneratorTrait.php Sets the URL generator service.
UrlGeneratorTrait::url function core/lib/Drupal/Core/Routing/UrlGeneratorTrait.php Generates a URL or path for a specific route based on the given parameters.
UrlGeneratorTraitTest class core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTraitTest.php @coversDefaultClass \Drupal\Core\Routing\UrlGeneratorTrait[[api-linebreak]]
@group Routing
@group legacy
UrlGeneratorTraitTest.php file core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTraitTest.php
UrlGeneratorTraitTest::testGetUrlGenerator function core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTraitTest.php @covers ::setUrlGenerator[[api-linebreak]]
@covers ::getUrlGenerator[[api-linebreak]]
UrlGeneratorTraitTest::testRedirect function core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTraitTest.php @covers ::redirect[[api-linebreak]]
UrlGeneratorTraitTest::testUrl function core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTraitTest.php @covers ::url[[api-linebreak]]
UrlHelper::$allowedProtocols property core/lib/Drupal/Component/Utility/UrlHelper.php The list of allowed protocols.
UrlHelper::filterBadProtocol function core/lib/Drupal/Component/Utility/UrlHelper.php Processes an HTML attribute value and strips dangerous protocols from URLs.
UrlHelper::getAllowedProtocols function core/lib/Drupal/Component/Utility/UrlHelper.php Gets the allowed protocols.
UrlHelper::setAllowedProtocols function core/lib/Drupal/Component/Utility/UrlHelper.php Sets the allowed protocols.
UrlHelper::stripDangerousProtocols function core/lib/Drupal/Component/Utility/UrlHelper.php Strips dangerous protocols (for example, 'javascript:') from a URI.
UrlHelperTest::providerTestFilterBadProtocol function core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php Provides data for self::testTestFilterBadProtocol().
UrlHelperTest::providerTestStripDangerousProtocols function core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php Provides data for self::testStripDangerousProtocols().
UrlHelperTest::testFilterBadProtocol function core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php Tests bad protocol filtering and escaping.
UrlHelperTest::testStripDangerousProtocols function core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php Tests dangerous url protocol filtering.
UrlTest::$pathValidator property core/tests/Drupal/Tests/Core/UrlTest.php The mocked path validator.
UrlTest::$urlGenerator property core/tests/Drupal/Tests/Core/UrlTest.php The URL generator
UrlTest::providerTestToUriStringForEntity function core/tests/Drupal/Tests/Core/UrlTest.php Data provider for testing string entity URIs
UrlTest::providerTestToUriStringForInternal function core/tests/Drupal/Tests/Core/UrlTest.php Data provider for testing internal URIs.
UrlTest::providerTestToUriStringForRoute function core/tests/Drupal/Tests/Core/UrlTest.php Data provider for testing route: URIs.
UrlTest::testGetOptions function core/tests/Drupal/Tests/Core/UrlTest.php Tests the getOptions() method.
UrlTest::testGetUriForProtocolRelativeUrl function core/tests/Drupal/Tests/Core/UrlTest.php Tests the getUri() and isExternal() methods for protocol-relative URLs.
UrlTest::testSetOptions function core/tests/Drupal/Tests/Core/UrlTest.php Tests the setOptions() method.
UrlTest::testToString function core/tests/Drupal/Tests/Core/UrlTest.php Tests the toString() method.
UrlTest::testToUriStringForEntity function core/tests/Drupal/Tests/Core/UrlTest.php Tests the toUriString() method with entity: URIs.
UrlTest::testToUriStringForInternal function core/tests/Drupal/Tests/Core/UrlTest.php Tests the toUriString() method with internal: URIs.
UrlTest::testToUriStringForRoute function core/tests/Drupal/Tests/Core/UrlTest.php Tests the toUriString() method with route: URIs.
url_generator service core/core.services.yml Drupal\Core\Render\MetadataBubblingUrlGenerator
url_generator.non_bubbling service core/core.services.yml Drupal\Core\Routing\UrlGenerator

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