Improve documentation and help text around "source" and "target"

Created on 29 August 2024, 3 months ago

Problem/Motivation

I've been using Drupal for 19 years and whenever I do something with Entity Usage module I can't understand which is the source and which is the target. I have to go look at the code and see what it's doing. I know that most people don't do this, they just check off all the entity types that they want to work with for both source and target. This is obviously inefficient.

Proposed resolution

Add an common example, both in the readme, and on the config page. Maybe

Example configuration
For: A node with an entity-reference field to media entities
Source: Media
Tracking plugin: Entity Reference
Target: Node

Remaining tasks

* Agree on approach
* Implement

✨ Feature request
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada dalin Guelph, πŸ‡¨πŸ‡¦, 🌍

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

Comments & Activities

  • Issue created by @dalin
  • +1 on this. It's completely unclear how to correctly configure this.

  • πŸ‡ΊπŸ‡ΈUnited States vetchneons

    +1 as well. I have been doing the same thing the OP has been. I don't think most people are going to look at the source code to figure out how to best to configure the module.

  • πŸ‡ͺπŸ‡ΈSpain marcoscano Barcelona, Spain

    Happy to get this in. Does anybody feel like proposing a Merge Request?
    (just clarifying that the proposed resolution in the ticket description has it backwards... :) if there is a field on the node that can reference media entities, then the node is the source, and media is the target. In other words, the field is always attached to the source, and what users reference is always the target)

    Thanks!

Production build 0.71.5 2024