Impossible disable Link label to the referenced entity

Created on 23 July 2025, 5 days ago

Problem/Motivation

I can't disable "Link label to the referenced entity".
Drupal 10.3.10
PHP 8.2

Steps to reproduce

Select "File download link" in views field formatter.
Unselect "Link label to the referenced entity"
Save.
Reopen field formatter

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇮🇹Italy trickfun

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @trickfun
  • 🇺🇸United States danflanagan8 St. Louis, US

    Some more information would be helpful here. I see "Link label to the referenced entity" as an option only for the core Label formatter (EntityReferenceLabelFormatter).

    Screenhosts, error messages, that kind of thing would be great.

  • First commit to issue fork.
  • 🇮🇳India anurag_nagar

    anurag_nagar changed the visibility of the branch 3537582-impossible-disable-link to hidden.

  • 🇮🇳India anurag_nagar

    anurag_nagar changed the visibility of the branch 3537582-impossible-disable-link to hidden.

  • 🇮🇳India anurag_nagar

    anurag_nagar changed the visibility of the branch 3537582-impossible-disable-link to hidden.

  • Pipeline finished with Failed
    3 days ago
    Total: 335s
    #556476
  • 🇮🇳India anurag_nagar

    anurag_nagar changed the visibility of the branch 3537582-impossible-disable-link to active.

  • 🇮🇳India Shubh02

    shubh02 changed the visibility of the branch 3537582-impossible-disable-link to hidden.

  • 🇮🇳India Shubh02

    The commit attached to this issue is working for version 2.0.4.
    Tried below steps
    Select "File download link" in views field formatter.
    Unselect "Link label to the referenced entity"
    Save.
    Reopen settings - checkbox remain unchecked (Test)

  • Pipeline finished with Success
    3 days ago
    Total: 177s
    #556796
  • 🇺🇸United States danflanagan8 St. Louis, US

    This still needs work. The "link" setting is only used by the Entity Label formatter, which is not in any way extended or leveraged by this module.

    How do we move forward? First, the issue summary still needs a lot more information. A very key of information that is not clear is that this is specifically a problem with the file_download_link_media formatter when used one a Views field.

    Here's a screenshot like I asked for:

    That really helps things because we see that the settings form for the File Download Link formatter isn't displayed. Where are all the configuration options like "Link Text" "Open file in new tab" and the "Example Token" drawer?

    That's the bug. That's what we need to fix.

    Here's how it looks if I'm using the non-media field_download_link formatter to render an Image field (not media) in Views:

    Why does the setting form load for the normal file_download_link formatter but not the file_download_link_media formatter?

Production build 0.71.5 2024