Search for getUrl

  1. Search 7.x for getUrl
  2. Search 9.5.x for getUrl
  3. Search 8.9.x for getUrl
  4. Search 10.3.x for getUrl
  5. Other projects
Title Object type File name Summary
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.
DynamicPluginConfigWithCsrfTokenUrlTrait::getUrlWithReplacedCsrfTokenPlaceholder function core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/DynamicPluginConfigWithCsrfTokenUrlTrait.php Gets the given URL with all placeholders replaced.
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.
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.
LinkFieldTest::getUrlWithComplexQuery function core/modules/link/tests/src/Functional/LinkFieldTest.php Get array of url with complex query parameters for render check.
LinkFieldTest::getUrlWithComplexQueryInputList function core/modules/link/tests/src/Functional/LinkFieldTest.php Get list of url with complex query parameters for input check.
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
SecurityAdvisory::getUrl function core/modules/system/src/SecurityAdvisories/SecurityAdvisory.php Gets the URL to the security advisory.
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.
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.
ViewExecutable::getUrl function core/modules/views/src/ViewExecutable.php Gets the URL for the current view.
ViewExecutable::getUrlInfo function core/modules/views/src/ViewExecutable.php Gets the Url object associated with the display handler.
ViewExecutableTest::testGetUrlWithoutRouterDisplay function core/modules/views/tests/src/Unit/ViewExecutableTest.php @covers ::getUrl

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