Search for getUrl

  1. Search 7.x for getUrl
  2. Search 9.5.x for getUrl
  3. Search 10.3.x for getUrl
  4. Search 11.x for getUrl
  5. Other projects
Title Object type File name Summary
AssertContentTrait::getUrl function core/tests/Drupal/KernelTests/AssertContentTrait.php Get the current URL from the cURL handler.
ContactLink::getUrlInfo function core/modules/contact/src/Plugin/views/field/ContactLink.php Returns the URI elements of the link.
DisplayPluginBase::getUrl function core/modules/views/src/Plugin/views/display/DisplayPluginBase.php Returns a URL to $this display or its configured linked display.
DisplayPluginInterface::getUrl function core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php Returns a URL to $this display or its configured linked display.
DisplayRouterInterface::getUrlInfo function core/modules/views/src/Plugin/views/display/DisplayRouterInterface.php Generates a URL to this display.
Endpoint::getUrl function core/modules/media/src/OEmbed/Endpoint.php Returns the endpoint URL.
EntityLink::getUrlInfo function core/modules/views/src/Plugin/views/field/EntityLink.php Returns the URI elements of the link.
Feed::getUrl function core/modules/aggregator/src/Entity/Feed.php Returns the url to the feed.
FeedInterface::getUrl function core/modules/aggregator/src/FeedInterface.php Returns the url to the feed.
Link::getUrl function core/lib/Drupal/Core/Link.php Returns the URL of the link.
LinkApprove::getUrlInfo function core/modules/comment/src/Plugin/views/field/LinkApprove.php Returns the URI elements of the link.
LinkBase::getUrlInfo function core/modules/views/src/Plugin/views/field/LinkBase.php Returns the URI elements of the link.
LinkItem::getUrl function core/modules/link/src/Plugin/Field/FieldType/LinkItem.php Gets the URL object.
LinkItemInterface::getUrl function core/modules/link/src/LinkItemInterface.php Gets the URL object.
LinkReply::getUrlInfo function core/modules/comment/src/Plugin/views/field/LinkReply.php Returns the URI elements of the link.
MenuLinkBase::getUrlObject function core/lib/Drupal/Core/Menu/MenuLinkBase.php Returns a URL object containing either the external path or route.
MenuLinkContent::getUrlObject function core/modules/menu_link_content/src/Entity/MenuLinkContent.php Gets the url object pointing to the URL of the menu link content entity.
MenuLinkContentInterface::getUrlObject function core/modules/menu_link_content/src/MenuLinkContentInterface.php Gets the url object pointing to the URL of the menu link content entity.
MenuLinkInterface::getUrlObject function core/lib/Drupal/Core/Menu/MenuLinkInterface.php Returns a URL object containing either the external path or route.
PathPluginBase::getUrlInfo function core/modules/views/src/Plugin/views/display/PathPluginBase.php Generates a URL to this display.
PathValidator::getUrl function core/lib/Drupal/Core/Path/PathValidator.php Helper for getUrlIfValid() and getUrlIfValidWithoutAccessCheck().
PathValidator::getUrlIfValid function core/lib/Drupal/Core/Path/PathValidator.php Returns a URL object, if the path is valid and accessible.
PathValidator::getUrlIfValidWithoutAccessCheck function core/lib/Drupal/Core/Path/PathValidator.php Returns a URL object, if the path is valid.
PathValidatorInterface::getUrlIfValid function core/lib/Drupal/Core/Path/PathValidatorInterface.php Returns a URL object, if the path is valid and accessible.
PathValidatorInterface::getUrlIfValidWithoutAccessCheck function core/lib/Drupal/Core/Path/PathValidatorInterface.php Returns a URL object, if the path is valid.
PathValidatorTest::testGetUrlIfValidWithAccess function core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php Tests the getUrlIfValid() method when there is access.
PathValidatorTest::testGetUrlIfValidWithFrontPageAndQueryAndFragments function core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php Tests the getUrlIfValid() method with a front page + query + fragments.
PathValidatorTest::testGetUrlIfValidWithoutAccess function core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php Tests the getUrlIfValid() method where there is no access.
PathValidatorTest::testGetUrlIfValidWithoutAccessCheck function core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php Tests the getUrlIfValidWithoutAccessCheck() method.
PathValidatorTest::testGetUrlIfValidWithoutAccessCheck function core/tests/Drupal/KernelTests/Core/Path/PathValidatorTest.php
PathValidatorTest::testGetUrlIfValidWithQuery function core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php Tests the getUrlIfValid() method with a query in the path.
Provider::getUrl function core/modules/media/src/OEmbed/Provider.php Returns the provider URL.
Resource::getUrl function core/modules/media/src/OEmbed/Resource.php Returns the URL of the resource. Only applies to 'photo' resources.
ResourceException::getUrl function core/modules/media/src/OEmbed/ResourceException.php Gets the URL of the resource which caused the exception.
RevisionLink::getUrlInfo function core/modules/node/src/Plugin/views/field/RevisionLink.php Returns the URI elements of the link.
RevisionLinkDelete::getUrlInfo function core/modules/node/src/Plugin/views/field/RevisionLinkDelete.php Returns the URI elements of the link.
RevisionLinkRevert::getUrlInfo function core/modules/node/src/Plugin/views/field/RevisionLinkRevert.php Returns the URI elements of the link.
SecuredRedirectResponse::setTargetUrl function core/lib/Drupal/Component/HttpFoundation/SecuredRedirectResponse.php
Shortcut::getUrl function core/modules/shortcut/src/Entity/Shortcut.php Returns the URL object pointing to the configured route.
ShortcutInterface::getUrl function core/modules/shortcut/src/ShortcutInterface.php Returns the URL object pointing to the configured route.
TextFormatElementFormTest::getUrl function core/modules/filter/tests/src/Kernel/TextFormatElementFormTest.php Get the current URL from the cURL handler.
TrustedRedirectResponse::setTrustedTargetUrl function core/lib/Drupal/Core/Routing/TrustedRedirectResponse.php Sets the target URL to a trusted URL.
TrustedRedirectResponseTest::testSetTargetUrlWithInternalUrl function core/tests/Drupal/Tests/Core/Routing/TrustedRedirectResponseTest.php @covers ::setTargetUrl
TrustedRedirectResponseTest::testSetTargetUrlWithTrustedUrl function core/tests/Drupal/Tests/Core/Routing/TrustedRedirectResponseTest.php @covers ::setTargetUrl
TrustedRedirectResponseTest::testSetTargetUrlWithUntrustedUrl function core/tests/Drupal/Tests/Core/Routing/TrustedRedirectResponseTest.php @covers ::setTargetUrl
TwigExtension::getUrl function core/lib/Drupal/Core/Template/TwigExtension.php Generates an absolute URL given a route name and parameters.
UiHelperTrait::getUrl function core/tests/Drupal/Tests/UiHelperTrait.php Get the current URL from the browser.
UrlGeneratorTrait::getUrlGenerator function core/lib/Drupal/Core/Routing/UrlGeneratorTrait.php Returns the URL generator service.
UrlGeneratorTraitTest::testGetUrlGenerator function core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTraitTest.php @covers ::setUrlGenerator
@covers ::getUrlGenerator
ViewExecutable::getUrl function core/modules/views/src/ViewExecutable.php Gets the URL for the current view.

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