You are here

139 calls to Url::fromUri() in Drupal 8

AggregatorTitleFormatter::viewElements in core/modules/aggregator/src/Plugin/Field/FieldFormatter/AggregatorTitleFormatter.php
Builds a renderable array for a field value.
BaseFieldFileFormatterBase::viewElements in core/modules/file/src/Plugin/Field/FieldFormatter/BaseFieldFileFormatterBase.php
Builds a renderable array for a field value.
BigPipeTest::testBigPipe in core/modules/big_pipe/tests/src/Functional/BigPipeTest.php
Tests BigPipe-delivered HTML responses when JavaScript is enabled.
BigPipeTest::testBigPipeNoJs in core/modules/big_pipe/tests/src/Functional/BigPipeTest.php
Tests BigPipe-delivered HTML responses when JavaScript is disabled.
ConfirmFormTest::testConfirmFormWithExternalDestination in core/modules/system/tests/src/Functional/Form/ConfirmFormTest.php
Tests that the confirm form does not use external destinations.
CorsIntegrationTest::testCrossSiteRequest in core/tests/Drupal/FunctionalTests/HttpKernel/CorsIntegrationTest.php
DbLogController::createLink in core/modules/dblog/src/Controller/DbLogController.php
Creates a Link object if the provided URI is valid.
DbUpdateController::info in core/modules/system/src/Controller/DbUpdateController.php
Returns the info database update page.
DbUpdateController::triggerBatch in core/modules/system/src/Controller/DbUpdateController.php
Starts the database update batch process.
DisplayPluginBase::getMoreUrl in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
Get the more URL for this view.
DynamicPageCacheIntegrationTest::testDynamicPageCache in core/modules/dynamic_page_cache/tests/src/Functional/DynamicPageCacheIntegrationTest.php
Tests that Dynamic Page Cache works correctly, and verifies the edge cases.
EntityResource::getRequestLink in core/modules/jsonapi/src/Controller/EntityResource.php
Get the full URL for a given request object.
EntityResourceTestBase::getEntityResourcePostUrl in core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php
Gets an entity resource's POST URL.
EntityResourceTestBase::getEntityResourceUrl in core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php
Gets an entity resource's GET/PATCH/DELETE URL.
EntityResourceTestBase::testPost in core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php
Tests a POST request for an entity, plus edge cases to ensure good DX.
EntityTestExternal::toUrl in core/modules/system/tests/modules/entity_test/src/Entity/EntityTestExternal.php
Gets the URL object for the entity.
EntryPointTest::testEntryPoint in core/modules/jsonapi/tests/src/Functional/EntryPointTest.php
Test GETing the entry point.
FeedViewBuilder::buildComponents in core/modules/aggregator/src/FeedViewBuilder.php
Builds the component fields and properties of a set of entities.
FieldPluginBase::renderAsLink in core/modules/views/src/Plugin/views/field/FieldPluginBase.php
Render this field as a link, with the info from a fieldset set by the user.
FieldPluginBase::renderText in core/modules/views/src/Plugin/views/field/FieldPluginBase.php
Performs an advanced text render for the item.
FileEntityFormatterTest::testFormatterFileLink in core/modules/file/tests/src/Kernel/Formatter/FileEntityFormatterTest.php
Tests the file_link field formatter.
FileEntityFormatterTest::testFormatterFileUri in core/modules/file/tests/src/Kernel/Formatter/FileEntityFormatterTest.php
Tests the file_link field formatter.
FileUploadResourceTestBase::testFileUploadInvalidFileType in core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php
Tests using the file upload route with an invalid file type.
FileUploadResourceTestBase::testFileUploadLargerFileSize in core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php
Tests using the file upload route with a file size larger than allowed.
FileUploadResourceTestBase::testFileUploadMaliciousExtension in core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php
Tests using the file upload POST route with malicious extensions.
FileUploadResourceTestBase::testFileUploadNoExtensionSetting in core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php
Tests using the file upload POST route no extension configured.
FileUploadResourceTestBase::testFileUploadStrippedFilePath in core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php
Tests using the file upload route with any path prefixes being stripped.
FileUploadResourceTestBase::testFileUploadUnicodeFilename in core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php
Tests using the file upload route with a unicode file name.
FileUploadResourceTestBase::testFileUploadZeroByteFile in core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php
Tests using the file upload route with a zero byte file.
FileUploadResourceTestBase::testPostFileUpload in core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php
Tests using the file upload POST route.
FileUploadResourceTestBase::testPostFileUploadDuplicateFile in core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php
Tests using the file upload POST route with a duplicate file name.
FileUploadResourceTestBase::testPostFileUploadDuplicateFileRaceCondition in core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php
Tests using the file upload POST route twice, simulating a race condition.
FileUploadResourceTestBase::testPostFileUploadInvalidHeaders in core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php
Tests using the file upload POST route with invalid headers.
FileUploadTest::testFileUploadInvalidFileType in core/modules/jsonapi/tests/src/Functional/FileUploadTest.php
Tests using the file upload route with an invalid file type.
FileUploadTest::testFileUploadLargerFileSize in core/modules/jsonapi/tests/src/Functional/FileUploadTest.php
Tests using the file upload route with a file size larger than allowed.
FileUploadTest::testFileUploadMaliciousExtension in core/modules/jsonapi/tests/src/Functional/FileUploadTest.php
Tests using the file upload POST route with malicious extensions.
FileUploadTest::testFileUploadNoExtensionSetting in core/modules/jsonapi/tests/src/Functional/FileUploadTest.php
Tests using the file upload POST route no extension configured.
FileUploadTest::testFileUploadStrippedFilePath in core/modules/jsonapi/tests/src/Functional/FileUploadTest.php
Tests using the file upload route with any path prefixes being stripped.
FileUploadTest::testFileUploadUnicodeFilename in core/modules/jsonapi/tests/src/Functional/FileUploadTest.php
Tests using the file upload route with a unicode file name.
FileUploadTest::testFileUploadZeroByteFile in core/modules/jsonapi/tests/src/Functional/FileUploadTest.php
Tests using the file upload route with a zero byte file.
FileUploadTest::testPostFileUpload in core/modules/jsonapi/tests/src/Functional/FileUploadTest.php
Tests using the file upload POST route; needs second request to "use" file.
FileUploadTest::testPostFileUploadAndUseInSingleRequest in core/modules/jsonapi/tests/src/Functional/FileUploadTest.php
Tests using the 'file upload and "use" file in single request" POST route.
FileUploadTest::testPostFileUploadDuplicateFile in core/modules/jsonapi/tests/src/Functional/FileUploadTest.php
Tests using the file upload POST route with a duplicate file name.
FileUploadTest::testPostFileUploadDuplicateFileRaceCondition in core/modules/jsonapi/tests/src/Functional/FileUploadTest.php
Tests using the file upload POST route twice, simulating a race condition.
FileUploadTest::testPostFileUploadInvalidHeaders in core/modules/jsonapi/tests/src/Functional/FileUploadTest.php
Tests using the file upload POST route with invalid headers.
FunctionsTest::testIndexedKeyedLinks in core/modules/system/tests/src/Kernel/Theme/FunctionsTest.php
Tests links.html.twig using links with indexed keys.
FunctionsTest::testLinks in core/modules/system/tests/src/Kernel/Theme/FunctionsTest.php
Tests links.html.twig.
HalEntityNormalizationTrait::assertNormalizationEdgeCases in core/modules/hal/tests/src/Functional/EntityResource/HalEntityNormalizationTrait.php
ImageFormatter::viewElements in core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php
Builds a renderable array for a field value.
ImageThemeFunctionTest::testImageFormatterTheme in core/modules/image/tests/src/Kernel/ImageThemeFunctionTest.php
Tests usage of the image field formatters.
install_run_task in core/includes/install.core.inc
Runs an individual installation task.
Item::buildUri in core/modules/aggregator/src/Entity/Item.php
Entity URI callback.
JsonApiFunctionalMultilingualTest::testDeleteMultilingual in core/modules/jsonapi/tests/src/Functional/JsonApiFunctionalMultilingualTest.php
Tests deleting multilingual content.
JsonApiFunctionalMultilingualTest::testPatchTranslation in core/modules/jsonapi/tests/src/Functional/JsonApiFunctionalMultilingualTest.php
Tests updating a translation.
JsonApiFunctionalMultilingualTest::testPatchTranslationFallback in core/modules/jsonapi/tests/src/Functional/JsonApiFunctionalMultilingualTest.php
Tests updating a translation fallback.
JsonApiFunctionalMultilingualTest::testPostTranslation in core/modules/jsonapi/tests/src/Functional/JsonApiFunctionalMultilingualTest.php
Tests creating a translation.
JsonApiRegressionTest::testAliasedFieldsWithVirtualRelationships in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Tests that "virtual/missing" resources can exist for renamed fields.
JsonApiRegressionTest::testBundleSpecificTargetEntityTypeFromIssue2953207 in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Ensure filtering on relationships works with bundle-specific target types.
JsonApiRegressionTest::testDanglingReferencesInAnEntityReferenceFieldFromIssue2968972 in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Cannot PATCH an entity with dangling references in an ER field.
JsonApiRegressionTest::testDanglingReferencesInAnEntityReferenceFieldFromIssue2984647 in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Cannot GET an entity with dangling references in an ER field.
JsonApiRegressionTest::testDeepNestedIncludeMultiTargetEntityTypeFieldFromIssue2973681 in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Ensure deep nested include works on multi target entity type field.
JsonApiRegressionTest::testDenormalizeAliasedRelationshipFromIssue2953207 in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Ensures denormalizing relationships with aliased field names works.
JsonApiRegressionTest::testEmptyMapFieldTypeDenormalization in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Ensure optional `@FieldType=map` fields are denormalized correctly.
JsonApiRegressionTest::testFilterByIdFromIssue3015759 in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Ensures that filtering by a sequential internal ID named 'id' is possible.
JsonApiRegressionTest::testGetNodeCollectionWithHookNodeGrantsImplementationsFromIssue2984964 in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Ensures GETting node collection + hook_node_grants() implementations works.
JsonApiRegressionTest::testGetTermWhenMultipleVocabulariesExistFromIssue2977879 in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Ensures GETting terms works when multiple vocabularies exist.
JsonApiRegressionTest::testInvalidDataTriggersUnprocessableEntityErrorFromIssue3052954 in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Ensure POSTing invalid data results in a 422 response, not a PHP error.
JsonApiRegressionTest::testLeakCacheMetadataInOmitted in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Ensure EntityAccessDeniedHttpException cacheability is taken into account.
JsonApiRegressionTest::testLeakedCacheMetadataViaRdfFromIssue3053827 in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Ensure that child comments can be retrieved via JSON:API.
JsonApiRegressionTest::testMapFieldTypeNormalizationFromIssue3040590 in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Ensure `@FieldType=map` fields are normalized correctly.
JsonApiRegressionTest::testNonTranslatableEntityUpdatesFromIssue3043168 in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Ensure non-translatable entities can be PATCHed with an alternate language.
JsonApiRegressionTest::testPageCacheFromIssue3009596 in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Ensures that Drupal's page cache is effective.
JsonApiRegressionTest::testPatchingDateTimeFieldsFromIssue3021194 in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Ensures PATCHing datetime (both date-only & date+time) fields is possible.
JsonApiRegressionTest::testPatchingDateTimeNormalizedWrongTimeZoneIssue3021194 in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Ensures datetime fields are normalized using the correct timezone.
JsonApiRegressionTest::testPatchToIncludeUrlDoesNotReturnIncludeFromIssue3026030 in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Ensure includes are respected even when PATCHing.
JsonApiRegressionTest::testPostToIncludeUrlDoesNotReturnIncludeFromIssue3026030 in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Ensure includes are respected even when POSTing.
JsonApiRegressionTest::testRecursionDetectedWhenResponseContainsViolationsFrom3042124 in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Tests that the response still has meaningful error messages.
JsonApiRegressionTest::testThatRoutesAreRebuiltAfterDataModelChangesFromIssue2984886 in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
Ensures that JSON:API routes are caches are dynamically rebuilt.
LinkExternalProtocolsConstraintValidatorTest::providerValidate in core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkExternalProtocolsConstraintValidatorTest.php
Data provider for ::testValidate
LinkFieldTest::testNoLinkUri in core/modules/link/tests/src/Functional/LinkFieldTest.php
Test <nolink> and <none> as link uri.
LinkGenerationTest::testHookLinkAlter in core/tests/Drupal/KernelTests/Core/Url/LinkGenerationTest.php
Tests how hook_link_alter() can affect escaping of the link text.
LinkGeneratorTest::testGenerateExternal in core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php
Tests the generate() method with an external URL.
LinkItem::getUrl in core/modules/link/src/Plugin/Field/FieldType/LinkItem.php
Gets the URL object.
LinkNotExistingInternalConstraintValidatorTest::providerValidate in core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkNotExistingInternalConstraintValidatorTest.php
Data provider for ::testValidate
Links::getLinks in core/modules/views/src/Plugin/views/field/Links.php
Gets the list of links used by this field.
LinkTest::linkComparisonProvider in core/modules/jsonapi/tests/src/Unit/JsonApiResource/LinkTest.php
Provides test data for link comparison.
LinkTest::linkMergeProvider in core/modules/jsonapi/tests/src/Unit/JsonApiResource/LinkTest.php
Provides test data for link merging.
LinkTest::testGetLinkRelationType in core/modules/jsonapi/tests/src/Unit/JsonApiResource/LinkTest.php
@covers ::getLinkRelationType
LinkTest::testLinkDeprecations in core/modules/jsonapi/tests/src/Unit/JsonApiResource/LinkTest.php
@group legacy @expectedDeprecation Constructing a Drupal\jsonapi\JsonApiResource\Link with an array of link relation types is deprecated in drupal:8.8.0 and will throw a fatal error in drupal:9.0.0. Pass a single string instead. See…
LinkUri::transform in core/modules/menu_link_content/src/Plugin/migrate/process/LinkUri.php
Performs the associated process.
MailTest::testRenderedElementsUseAbsolutePaths in core/modules/system/tests/src/Kernel/Mail/MailTest.php
Checks that mails built from render arrays contain absolute paths.
MailToFormatter::viewElements in core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/MailToFormatter.php
Builds a renderable array for a field value.
MediaResourceTestBase::uploadFile in core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php
This duplicates some of the 'file_upload' REST resource plugin test coverage, to be able to test it on a concrete use case.
MenuLinkBase::getUrlObject in core/lib/Drupal/Core/Menu/MenuLinkBase.php
Returns a URL object containing either the external path or route.
OEmbedFormatter::viewElements in core/modules/media/src/Plugin/Field/FieldFormatter/OEmbedFormatter.php
Builds a renderable array for a field value.
OEmbedSourceTest::testLocalThumbnailUriQueryStringIsIgnored in core/modules/media/tests/src/Kernel/OEmbedSourceTest.php
@covers ::getLocalThumbnailUri
PathValidator::getUrl in core/lib/Drupal/Core/Path/PathValidator.php
Helper for getUrlIfValid() and getUrlIfValidWithoutAccessCheck().
RebuildScriptTest::testRebuild in core/modules/system/tests/src/Functional/UpdateSystem/RebuildScriptTest.php
Test redirect in rebuild.php.
RenderElementTypesTest::testMoreLink in core/tests/Drupal/KernelTests/Core/Render/Element/RenderElementTypesTest.php
Tests system #type 'more_link'.
ResourceResponseTestTrait::getResponses in core/modules/jsonapi/tests/src/Functional/ResourceResponseTestTrait.php
Gets responses from an array of links.
RouterTest::testUrlGeneratorFront in core/modules/system/tests/src/Functional/Routing/RouterTest.php
Checks the generate method on the url generator using the front router.
system_authorized_get_url in core/modules/system/system.module
Return the URL for the authorize.php script.
TelephoneLinkFormatter::viewElements in core/modules/telephone/src/Plugin/Field/FieldFormatter/TelephoneLinkFormatter.php
Builds a renderable array for a field value.
TestHelpSection::listTopics in core/modules/help_topics/tests/modules/help_topics_test/src/Plugin/HelpSection/TestHelpSection.php
Returns a list of topics to show in the help section.
TestHelpSection::renderTopicForSearch in core/modules/help_topics/tests/modules/help_topics_test/src/Plugin/HelpSection/TestHelpSection.php
Renders one topic for search indexing or search results.
TwigExtension::getLink in core/lib/Drupal/Core/Template/TwigExtension.php
Gets a rendered link from a url object.
UnroutedUrlTest::testFromInvalidUri in core/tests/Drupal/Tests/Core/UnroutedUrlTest.php
Tests the fromUri() method.
UnroutedUrlTest::testFromUri in core/tests/Drupal/Tests/Core/UnroutedUrlTest.php
Tests the fromUri() method.
UnroutedUrlTest::testGetInternalPath in core/tests/Drupal/Tests/Core/UnroutedUrlTest.php
Tests the getInternalPath() method.
UnroutedUrlTest::testGetOptions in core/tests/Drupal/Tests/Core/UnroutedUrlTest.php
Tests the getOptions() method.
UnroutedUrlTest::testGetRouteName in core/tests/Drupal/Tests/Core/UnroutedUrlTest.php
Tests the getRouteName() method.
UnroutedUrlTest::testGetRouteParameters in core/tests/Drupal/Tests/Core/UnroutedUrlTest.php
Tests the getRouteParameters() method.
UnroutedUrlTest::testGetUri in core/tests/Drupal/Tests/Core/UnroutedUrlTest.php
Tests the getPath() method.
UnroutedUrlTest::testIsExternal in core/tests/Drupal/Tests/Core/UnroutedUrlTest.php
Tests the isExternal() method.
UnroutedUrlTest::testToString in core/tests/Drupal/Tests/Core/UnroutedUrlTest.php
Tests the toString() method.
UriLinkFormatter::viewElements in core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/UriLinkFormatter.php
Builds a renderable array for a field value.
Url::fromInternalUri in core/lib/Drupal/Core/Url.php
Creates a new Url object for 'internal:' URIs.
Url::fromUserInput in core/lib/Drupal/Core/Url.php
Creates a Url object for a relative URI reference submitted by user input.
UrlTest::testEntityUris in core/tests/Drupal/Tests/Core/UrlTest.php
Tests the fromUri() method with an entity: URI.
UrlTest::testFromInvalidInternalUri in core/tests/Drupal/Tests/Core/UrlTest.php
Tests the fromUri() method with an invalid internal: URI.
UrlTest::testFromRoutedPathWithInvalidRoute in core/tests/Drupal/Tests/Core/UrlTest.php
Tests fromUri() method with a user-entered path not matching any route.
UrlTest::testFromRoutedPathWithValidRoute in core/tests/Drupal/Tests/Core/UrlTest.php
Tests fromUri() method with user-entered path matching a valid route.
UrlTest::testFromRouteUriWithMissingRouteName in core/tests/Drupal/Tests/Core/UrlTest.php
@covers ::fromUri
UrlTest::testFromUriNumber in core/tests/Drupal/Tests/Core/UrlTest.php
Tests the fromUri() method with a base: URI starting with a number.
UrlTest::testFromValidInternalUri in core/tests/Drupal/Tests/Core/UrlTest.php
Tests the fromUri() method with a valid internal: URI.
UrlTest::testGetRouteNameWithExternalUrl in core/tests/Drupal/Tests/Core/UrlTest.php
Tests the getRouteName() with an external URL.
UrlTest::testGetRouteParametersWithExternalUrl in core/tests/Drupal/Tests/Core/UrlTest.php
Tests the getRouteParameters() with an external URL.
UrlTest::testGetUriForExternalUrl in core/tests/Drupal/Tests/Core/UrlTest.php
Tests the getUri() method for external URLs.
UrlTest::testGetUriForProtocolRelativeUrl in core/tests/Drupal/Tests/Core/UrlTest.php
Tests the getUri() and isExternal() methods for protocol-relative URLs.
UrlTest::testLinkAttributes in core/modules/system/tests/src/Functional/Common/UrlTest.php
Tests that default and custom attributes are handled correctly on links.
UrlTest::testLinkBubbleableMetadata in core/modules/system/tests/src/Functional/Common/UrlTest.php
Tests that #type=link bubbles outbound route/path processors' metadata.
UrlTest::testLinkRenderArrayText in core/modules/system/tests/src/Functional/Common/UrlTest.php
Tests that link functions support render arrays as 'text'.
UrlTest::testToUriStringForEntity in core/tests/Drupal/Tests/Core/UrlTest.php
Tests the toUriString() method with entity: URIs.
UrlTest::testToUriStringForInternal in core/tests/Drupal/Tests/Core/UrlTest.php
Tests the toUriString() method with internal: URIs.
UrlTest::testToUriStringForRoute in core/tests/Drupal/Tests/Core/UrlTest.php
Tests the toUriString() method with route: URIs.
ViewEditForm::getDisplayDetails in core/modules/views_ui/src/ViewEditForm.php
Helper function to get the display details section of the edit UI.
ViewEditForm::save in core/modules/views_ui/src/ViewEditForm.php
Form submission handler for the 'save' action.
WebTestBase::assertUrl in core/modules/simpletest/src/WebTestBase.php
Passes if the internal browser's URL matches the given path.
_batch_finished in core/includes/batch.inc
Ends the batch processing.