Support Linkit Link formatter

Created on 19 December 2024, 3 days ago

Linkit provides a widget for Link fields. When using this formatter on a Link field, the "Link Fields" EntityUsageTracker does not pick this up the first time the field is saved.

Reason is that linkit uses an unrouted url (with uri format: base:media/42).

Not sure what is the preferred way to proceed, the options are:

  • Create a new separate "Linkit Link formatter" EntityUsageTracker
  • Add logic to existing "Link formatter" EntityUsageTracker
  • Fix this in upstream in Linkit, by requesting to use a routed url instead?
📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇧🇪Belgium StryKaizer Belgium

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

Comments & Activities

  • Issue created by @StryKaizer
  • 🇪🇸Spain marcoscano Barcelona, Spain

    Wut! I hadn't realized Linkit for Link field Fixed got in, actually quite a while ago... :)
    Since our current plugin was meant to support the original usage of Linkit (embedded links in wysiwyg), let's adjust the \Drupal\entity_usage\Plugin\EntityUsage\Track\Link plugin to also support the format their widget is using. I believe this is the easiest and cleanest way to support this.
    Thanks!

Production build 0.71.5 2024