Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Entity Usage

Security covered Under active development 61,493 sites

Part of the Entity ecosystem · 308 projects

This module tracks how entities are related to each other, allowing you to see which content is being referenced by other content. It supports various methods of reference, including entity reference fields, link fields, and links within text fields. This can be useful for preventing the deletion of content that is actively being used elsewhere.

This module provides a tool to track entity relationships in Drupal.

When do I need this module?

You may find this module useful if you want to:

  • Know the usage of nodes, media or taxonomy terms
  • Display usage / references of your content in general
  • Have a mechanism to prevent deletion of content (any entity) that is referenced by other piece of content

Supported relationships

Currently the following tracking methods are supported:

  • Entities related through entity_reference fields
  • Entities related through link fields
  • Standard HTML links inside text fields (when pointing to an entity URL).
  • Entities embedded into text fields using the Entity Embed or LinkIt modules
  • Entities related through fields provided by the Block Field,
    Entity Reference Revisions, and Dynamic Entity Reference modules
  • Entities related through Layout Builder. Supported methods: Core's inline
    (non-reusable) content blocks, and entities selected through the contributed
    Entity Browser Block module.

How it works

A relationship between two entities is considered so when a source entity points to a target entity through one of the methods described above.

You can configure the entity types to be tracked as a source, and what entity types should be tracked as target. By default all content entities (except files and users) are tracked as source.

You can also configure what plugins (from the tracking methods indicated above) should be active. By default all plugins are active.

When a source entity is created / updated / deleted, all active plugins are called to register potential relationships.

Content entities can have a local task link (Tab) on its canonical page linking to a "Usage" information page, where users can see where that entity is being used. You can configure which entity types should have a local task displaying usage information. By default no tabs are shown.

In order to configure these and other settings, navigate to "Configuration -> Content Authoring -> Entity Usage Settings" (or go to the URL /admin/config/entity-usage/settings).

Known limitations

Plugins track one usage per entity per field

The module will register only one usage of the same target entity per field. This is intentional in the current implementation, please open an issue if you have a use-case where this is a problem.

Drupal 11 · not 10

Ask your assistant about Entity Usage

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

9 tracked projects depend on this one

Activity

Tracked releases
36
Tracked since
Jan 2023
Latest release
3 weeks ago
Releases (12 mo)
19 ▲ from 10
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
8.x-2.0-beta13 Pre-release 10–11 Jul 24, 2024
8.x-2.0-beta12 Pre-release 9–10 May 17, 2023
8.x-2.0-beta11 Pre-release 9–10 Feb 21, 2023
8.x-2.0-beta10 Pre-release 9–10 Feb 7, 2023
8.x-2.0-beta9 Pre-release 9–10 Feb 6, 2023
8.x-2.0-beta8 Pre-release 9–10 Jan 20, 2023