Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Cms 2.1.6 — Update released for Drupal core (2.1.6)! Release: Search and Replace Scanner 2.0.1 — Minor update available for module scanner (2.0.1). Release: Media Directories 3.0.0 — Major update available for module media_directories (3.0.0). Release: CKEditor5 Pullquote 1.0.8 — Minor update available for module ckeditor5_pullquote (1.0.8). Release: Audit Chain 1.10.1 — Minor update available for module audit_chain (1.10.1). Release: Menu Autopilot 1.4.2 — Minor update available for module menu_autopilot (1.4.2). Release: FileGate 1.10.2 — Minor update available for module file_gate (1.10.2). Release: Field Guard 1.3.2 — Minor update available for module field_guard (1.3.2). Usage Milestone: Facebook Page Plugin — Module fb_likebox crossed 1,000 active installs. Module Revived: YAML bundles 1.0.7 — Module yaml_bundles updated after 11 months of inactivity (1.0.7).

Entity Usage Root

No security coverage

Part of the Entity ecosystem · 232 projects

View on drupal.org

This module helps find the top-level content that uses a specific entity, like a media item, even if the reference goes through other entities. It automatically tracks these relationships, allowing you to easily answer questions like "Which nodes use this media item?" without manual searching.

Entity Usage Root helps Drupal sites find the top-level content that uses an entity such as a media item, even when references pass through paragraphs or other entities.

Features

The Entity Usage module records direct references, such as a node referencing a paragraph or a paragraph referencing media. Entity Usage Root follows those references through the content structure and records the top-level entities that ultimately use each configured entity.

Use this module when editors, administrators, access-control logic, reports, or Views need to answer questions such as "Which nodes use this media item?" without manually following every intermediate reference.

Features include:

  • Configurable mappings between leaf entities and root entities, such as media to node.
  • Generated entity-reference fields containing the resolved root entities.
  • Automatic updates when referenced content is created, changed, or deleted.
  • Paragraph parent-chain traversal for common nested content structures.
  • Batch and Drush rebuilds for existing content or after tracking data changes.
  • Optional revision creation during bulk rebuilds.
  • Generated administrative Views for configured tracking pairs.
  • Queue processing after tracking configuration changes.

Post-Installation

Enable Entity Usage before enabling Entity Usage Root. After installation, go to Administration > Configuration > Content authoring > Entity Usage Root at /admin/config/entity-usage/root.

Choose which entity types should be tracked as leaves and which entity types should be treated as roots. For example, mapping media to node adds a generated root-reference field to media entities. The module also creates administrative Views for configured mappings when Views is available.

Existing content is not populated automatically on installation. Open the Rebuild tab at /admin/config/entity-usage/root/rebuild and run the initial rebuild. The rebuild can also be run with drush entity-usage-root:rebuild. New content is maintained automatically after installation.

The Entity Usage configuration must track each configured leaf type as a target and each intermediate referencing type as a source. The status report warns when this prerequisite configuration appears incomplete.

Additional Requirements

This module requires:

Views is included with Drupal core and is optional. The module does not require any external PHP libraries or JavaScript libraries.

  • Views URL Alias adds root entity paths and aliases to generated Views.
  • Queue UI provides an administrative interface for monitoring and running the configuration-change queue.
  • Paragraphs is useful when content uses nested paragraph references. It is not required unless the site uses Paragraphs.

Similar projects

Entity Usage records direct, single-hop references between entities. Entity Usage Root builds on that data to resolve multi-step reference chains and store the ultimate root entities for each configured leaf entity.

Supporting this Module

Bug reports, documentation improvements, compatibility reports, and code contributions through the Drupal.org issue queue are welcome.

Community Documentation

The project README contains installation, configuration, rebuild, and integration details. Community walkthroughs, demonstrations, and additional documentation can be linked here as they become available.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Sep 2026
Latest release
14 hours ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.0-alpha1 Pre-release 10–11 Sep 24, 2026
1.0.x-dev Dev 10–11 Sep 24, 2026