126 calls to Url::fromUri() in Drupal 9
- AggregatorTitleFormatter::viewElements in core/
modules/ aggregator/ src/ Plugin/ Field/ FieldFormatter/ AggregatorTitleFormatter.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.
- BookManager::buildItems in core/
modules/ book/ src/ BookManager.php - Builds the #items property for a book tree's renderable array.
- 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.
- 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 GET to 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.
- 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.
- FileUrlGenerator::generate in core/
lib/ Drupal/ Core/ File/ FileUrlGenerator.php - Creates a root-relative web-accessible URL object.
- 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 - 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::testFilteringEntitiesByEntityReferenceTargetId in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiRegressionTest.php - Tests that collections can be filtered by an entity reference target_id.
- 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::testNonCacheableMethods in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiRegressionTest.php - Tests that caching isn't happening for non-cacheable methods.
- 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.
- layout_builder_test_system_breadcrumb_alter in core/
modules/ layout_builder/ tests/ modules/ layout_builder_test/ layout_builder_test.module - Implements hook_system_breadcrumb_alter().
- 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 - Tests <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
- LinkUri::transform in core/
modules/ menu_link_content/ src/ Plugin/ migrate/ process/ LinkUri.php - Performs the associated process.
- LogTest::testLog in core/
modules/ migrate/ tests/ src/ Kernel/ Plugin/ LogTest.php - Tests the Log plugin.
- 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.
- 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 - Tests 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.
- SyndicateBlock::build in core/
modules/ node/ src/ Plugin/ Block/ SyndicateBlock.php - Builds and returns the renderable array for this block plugin.
- system_authorized_get_url in core/
modules/ system/ system.module - Return the URL for the authorize.php script.
- system_page_top in core/
modules/ system/ system.module - Implements hook_page_top().
- 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::testLinkAttributes in core/
modules/ system/ tests/ src/ Kernel/ Common/ UrlTest.php - Tests that default and custom attributes are handled correctly on links.
- UrlTest::testLinkBubbleableMetadata in core/
modules/ system/ tests/ src/ Kernel/ Common/ UrlTest.php - Tests that #type=link bubbles outbound route/path processors' metadata.
- UrlTest::testLinkRenderArrayText in core/
modules/ system/ tests/ src/ Kernel/ Common/ UrlTest.php - Tests that link functions support render arrays as 'text'.
- 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.
- _batch_finished in core/
includes/ batch.inc - Ends the batch processing.
- _system_advisories_requirements in core/
modules/ system/ system.install - Display requirements from security advisories.