95 #type uses of Link in Drupal 10
- AjaxTestController::dialog in core/
modules/ system/ tests/ modules/ ajax_test/ src/ Controller/ AjaxTestController.php - Returns a render array of form elements and links for dialog.
- AjaxTestController::dialogContents in core/
modules/ system/ tests/ modules/ ajax_test/ src/ Controller/ AjaxTestController.php - Example content for dialog testing.
- authorize.php in core/
authorize.php - Administrative script for running authorized file operations.
- BaseFieldFileFormatterBase::viewElements in core/
modules/ file/ src/ Plugin/ Field/ FieldFormatter/ BaseFieldFileFormatterBase.php - Builds a renderable array for a field value.
- BigPipePlaceholderTestCases::cases in core/
modules/ big_pipe/ tests/ modules/ big_pipe_test/ src/ BigPipePlaceholderTestCases.php - Gets all BigPipe placeholder test cases.
- BlockEntitySettingTrayForm::form in core/
modules/ settings_tray/ src/ Block/ BlockEntitySettingTrayForm.php - Gets the actual form array to be built.
- BlockListBuilder::buildBlocksForm in core/
modules/ block/ src/ BlockListBuilder.php - Builds the main "Blocks" portion of the form.
- block_page_top in core/
modules/ block/ block.module - Implements hook_page_top().
- ChooseBlockController::build in core/
modules/ layout_builder/ src/ Controller/ ChooseBlockController.php - Provides the UI for choosing a new block.
- ChooseBlockController::inlineBlockList in core/
modules/ layout_builder/ src/ Controller/ ChooseBlockController.php - Provides the UI for choosing a new inline block.
- ChooseSectionController::build in core/
modules/ layout_builder/ src/ Controller/ ChooseSectionController.php - Choose a layout plugin to add as a section.
- CKEditor5DialogTestController::testDialog in core/
modules/ ckeditor5/ tests/ modules/ ckeditor5_test/ src/ Controller/ CKEditor5DialogTestController.php - Returns a link that can open a node add form in an modal dialog.
- CKEditor5OffCanvasTestController::testOffCanvas in core/
modules/ ckeditor5/ tests/ modules/ ckeditor5_test/ src/ Controller/ CKEditor5OffCanvasTestController.php - Returns a link that can open a node add form in an off-canvas dialog.
- CkeditorOffCanvasTestController::testOffCanvas in core/
modules/ ckeditor/ tests/ modules/ src/ CkeditorOffCanvasTestController.php - Returns a link that can open a node add form in an off-canvas dialog.
- CommentAdminOverview::buildForm in core/
modules/ comment/ src/ Form/ CommentAdminOverview.php - Form constructor for the comment overview administration form.
- CommonTestController::typeLinkActiveClass in core/
modules/ system/ tests/ modules/ common_test/ src/ Controller/ CommonTestController.php - Returns links to the current page, with and without query strings.
- ConfigController::diff in core/
modules/ config/ src/ Controller/ ConfigController.php - Shows diff of specified configuration file.
- ConfirmFormHelper::buildCancelLink in core/
lib/ Drupal/ Core/ Form/ ConfirmFormHelper.php - Builds the cancel link for a confirmation form.
- DbUpdateController::info in core/
modules/ system/ src/ Controller/ DbUpdateController.php - Returns the info database update page.
- DbUpdateController::selection in core/
modules/ system/ src/ Controller/ DbUpdateController.php - Renders a list of available database updates.
- DisplayLink::render in core/
modules/ views/ src/ Plugin/ views/ area/ DisplayLink.php - Render the area.
- EntityDisplayModeListBuilder::render in core/
modules/ field_ui/ src/ EntityDisplayModeListBuilder.php - Builds the entity listing as renderable array for table.html.twig.
- EntityForm::actions in core/
lib/ Drupal/ Core/ Entity/ EntityForm.php - Returns an array of supported actions for the current entity form.
- EntityFormDisplayEditForm::getDisplayModesLink in core/
modules/ field_ui/ src/ Form/ EntityFormDisplayEditForm.php - Returns a link to the form or view mode admin page.
- EntityReferenceFormatterTest::testLabelFormatter in core/
modules/ field/ tests/ src/ Kernel/ EntityReference/ EntityReferenceFormatterTest.php - Tests the label formatter.
- EntityReferenceLabelFormatter::viewElements in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldFormatter/ EntityReferenceLabelFormatter.php - Builds a renderable array for a field value.
- FieldConfigEditForm::actions in core/
modules/ field_ui/ src/ Form/ FieldConfigEditForm.php - Returns an array of supported actions for the current entity form.
- FieldConfigListBuilder::buildRow in core/
modules/ field_ui/ src/ FieldConfigListBuilder.php - Builds a row for an entity in the entity listing.
- FormElementsRenderTest::testDrupalRenderFormElements in core/
modules/ system/ tests/ src/ Kernel/ Common/ FormElementsRenderTest.php - Tests rendering form elements without passing through \Drupal::formBuilder()->doBuildForm().
- forum_help in core/
modules/ forum/ forum.module - Implements hook_help().
- HelpTwigExtension::getRouteLink in core/
modules/ help_topics/ src/ HelpTwigExtension.php - Returns a link or plain text, given text, route name, and parameters.
- hook_toolbar in core/
modules/ toolbar/ toolbar.api.php - Add items to the toolbar menu.
- ImageEffectFormBase::buildForm in core/
modules/ image/ src/ Form/ ImageEffectFormBase.php - JSInteractionTestForm::buildForm in core/
modules/ system/ tests/ modules/ js_interaction_test/ src/ Controller/ JSInteractionTestForm.php - Creates the test form.
- JsWebAssertTestForm::addLink in core/
modules/ system/ tests/ modules/ js_webassert_test/ src/ Form/ JsWebAssertTestForm.php - Ajax callback for the "Add link" button.
- LanguageTestController::typeLinkActiveClass in core/
modules/ language/ tests/ language_test/ src/ Controller/ LanguageTestController.php - Returns links to the current page with different langcodes.
- LayoutBuilder::buildAddSectionLink in core/
modules/ layout_builder/ src/ Element/ LayoutBuilder.php - Builds a link to add a new section at a given delta.
- LayoutBuilder::buildAdministrativeSection in core/
modules/ layout_builder/ src/ Element/ LayoutBuilder.php - Builds the render array for the layout section while editing.
- LayoutBuilderEntityViewDisplayForm::form in core/
modules/ layout_builder/ src/ Form/ LayoutBuilderEntityViewDisplayForm.php - Link::toRenderable in core/
lib/ Drupal/ Core/ Link.php - LinkFormatter::viewElements in core/
modules/ link/ src/ Plugin/ Field/ FieldFormatter/ LinkFormatter.php - Builds a renderable array for a field value.
- 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.
- MediaListBuilder::buildRow in core/
modules/ media/ src/ MediaListBuilder.php - Builds a row for an entity in the entity listing.
- MenuLinkDefaultForm::buildConfigurationForm in core/
lib/ Drupal/ Core/ Menu/ Form/ MenuLinkDefaultForm.php - Form constructor.
- Module::postInstallTasks in core/
lib/ Drupal/ Core/ Updater/ Module.php - ModulesListForm::buildRow in core/
modules/ system/ src/ Form/ ModulesListForm.php - Builds a table row for the system modules page.
- NodeListBuilder::buildRow in core/
modules/ node/ src/ NodeListBuilder.php - Builds a row for an entity in the entity listing.
- NodePreviewForm::buildForm in core/
modules/ node/ src/ Form/ NodePreviewForm.php - Form constructor.
- OEmbedFormatter::viewElements in core/
modules/ media/ src/ Plugin/ Field/ FieldFormatter/ OEmbedFormatter.php - Builds a renderable array for a field value.
- OverviewTerms::buildForm in core/
modules/ taxonomy/ src/ Form/ OverviewTerms.php - Form constructor.
- PathAliasListBuilder::buildRow in core/
modules/ path/ src/ PathAliasListBuilder.php - Builds a row for an entity in the entity listing.
- ProfileForm::actions in core/
modules/ user/ src/ ProfileForm.php - RendererTest::providerTestRenderBasic in core/
tests/ Drupal/ Tests/ Core/ Render/ RendererTest.php - Provides a list of render arrays to test basic rendering.
- ReorderDisplays::buildForm in core/
modules/ views_ui/ src/ Form/ Ajax/ ReorderDisplays.php - SearchPageForm::buildForm in core/
modules/ search/ src/ Form/ SearchPageForm.php - Form constructor.
- SearchPageListBuilder::buildRow in core/
modules/ search/ src/ SearchPageListBuilder.php - Builds a row for an entity in the entity listing.
- SetCustomize::form in core/
modules/ shortcut/ src/ Form/ SetCustomize.php - Gets the actual form array to be built.
- ShortcutLazyBuilders::lazyLinks in core/
modules/ shortcut/ src/ ShortcutLazyBuilders.php - #lazy_builder callback; builds shortcut toolbar links.
- shortcut_preprocess_page_title in core/
modules/ shortcut/ shortcut.module - Implements hook_preprocess_HOOK() for page title templates.
- shortcut_toolbar in core/
modules/ shortcut/ shortcut.module - Implements hook_toolbar().
- StringFormatter::viewElements in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldFormatter/ StringFormatter.php - Builds a renderable array for a field value.
- system_requirements in core/
modules/ system/ system.install - Implements hook_requirements().
- TelephoneLinkFormatter::viewElements in core/
modules/ telephone/ src/ Plugin/ Field/ FieldFormatter/ TelephoneLinkFormatter.php - Builds a renderable array for a field value.
- template_preprocess_links in core/
includes/ theme.inc - Prepares variables for links templates.
- template_preprocess_menu_local_action in core/
includes/ theme.inc - Prepares variables for single local action link templates.
- template_preprocess_menu_local_task in core/
includes/ theme.inc - Prepares variables for single local task link templates.
- template_preprocess_views_ui_build_group_filter_form in core/
modules/ views_ui/ views_ui.theme.inc - Prepares variables for Views UI build group filter form templates.
- template_preprocess_views_ui_rearrange_filter_form in core/
modules/ views_ui/ views_ui.theme.inc - Prepares variables for Views UI rearrange filter form templates.
- TestController::linksDisplay in core/
modules/ system/ tests/ modules/ off_canvas_test/ src/ Controller/ TestController.php - Displays test links that will open in off-canvas dialog.
- TestController::linksDisplay in core/
modules/ system/ tests/ modules/ dialog_renderer_test/ src/ Controller/ TestController.php - Displays test links that will open in the modal dialog.
- TestController::modal in core/
modules/ views/ tests/ modules/ views_test_modal/ src/ Controller/ TestController.php - Renders a link to open the /admin/content view in a modal dialog.
- TextFormat::processFormat in core/
modules/ filter/ src/ Element/ TextFormat.php - Expands an element into a base element with text format selector attached.
- Theme::postInstallTasks in core/
lib/ Drupal/ Core/ Updater/ Theme.php - ThemeRenderAndAutoescapeTest::providerTestThemeRenderAndAutoescape in core/
tests/ Drupal/ KernelTests/ Core/ Theme/ ThemeRenderAndAutoescapeTest.php - Provide test examples.
- ToolbarItem::getInfo in core/
modules/ toolbar/ src/ Element/ ToolbarItem.php - Returns the element properties for this element.
- toolbar_test_toolbar in core/
modules/ toolbar/ tests/ modules/ toolbar_test/ toolbar_test.module - Implements hook_toolbar().
- toolbar_toolbar in core/
modules/ toolbar/ toolbar.module - Implements hook_toolbar().
- TrackerController::buildContent in core/
modules/ tracker/ src/ Controller/ TrackerController.php - Builds content for the tracker controllers.
- TwigExtension::getLink in core/
lib/ Drupal/ Core/ Template/ TwigExtension.php - Gets a rendered link from a url object.
- UpdateScriptTestController::databaseUpdatesMenuItem in core/
modules/ system/ tests/ modules/ update_script_test/ src/ Controller/ UpdateScriptTestController.php - Outputs a link to the database updates URL.
- update_authorize_update_batch_finished in core/
modules/ update/ update.authorize.inc - Batch callback: Performs actions when the authorized update batch is done.
- UriLinkFormatter::viewElements in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldFormatter/ UriLinkFormatter.php - Builds a renderable array for a field value.
- 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'.
- UserLoginBlock::build in core/
modules/ user/ src/ Plugin/ Block/ UserLoginBlock.php - user_toolbar in core/
modules/ user/ user.module - Implements hook_toolbar().
- ViewEditForm::getDisplayDetails in core/
modules/ views_ui/ src/ ViewEditForm.php - Helper function to get the display details section of the edit UI.
- WorkflowStateEditForm::actions in core/
modules/ workflows/ src/ Form/ WorkflowStateEditForm.php - Returns an array of supported actions for the current entity form.
- WorkflowTransitionEditForm::actions in core/
modules/ workflows/ src/ Form/ WorkflowTransitionEditForm.php - Returns an array of supported actions for the current entity form.
- WorkspaceListBuilder::buildRow in core/
modules/ workspaces/ src/ WorkspaceListBuilder.php - Builds a row for an entity in the entity listing.
- WorkspaceListBuilder::offCanvasRender in core/
modules/ workspaces/ src/ WorkspaceListBuilder.php - Renders the off canvas elements.
- workspaces_toolbar in core/
modules/ workspaces/ workspaces.module - Implements hook_toolbar().
- WorkspaceViewBuilder::buildComponents in core/
modules/ workspaces/ src/ WorkspaceViewBuilder.php - Builds the component fields and properties of a set of entities.