Provide a URL-only option in the download link formatter

Created on 29 August 2023, about 1 year ago
Updated 17 May 2024, 6 months ago

Problem/Motivation

Having the/a formatter able to provide only a URL is very helpful for easily handling the presentation of the link in a Twig template (custom text, using another field on the media item as part of the link text, adding classes to the anchor tag, etc).

Drupal core's Link field formatter provides this option with two settings:

  • URL only
  • Show URL as plain text

Media Entity Download could follow the same approach.

Thanks!

(Filing this issue partly as a placeholder for myself but not sure when i could get to contributing this.)

Feature request
Status

RTBC

Version

2.0

Component

Code

Created by

🇺🇸United States mlncn Minneapolis, MN, USA

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024