content_dependency_graph
An interactive visualization tool for mapping relationships between Drupal entities — nodes, media, taxonomy terms, paragraphs, and files.
Features
- Force-directed graph powered by vis-network
- Color-coded nodes by entity type with SVG icons
- Filter the graph by entity type while keeping the root node always visible
- Sidebar showing entity details and relationships on node click
- Zoom in/out, fit-to-view, and fullscreen controls
- Admin index listing the 100 most recently changed nodes
- "Dependency Graph" tab added to each node's canonical page
Requirements
- Drupal 10 or 11
- Core modules: Node, Taxonomy, Media
Installation
- Place the module in
/modules/contrib/content_dependency_graph/. - Enable the module using Drush:
drush en content_dependency_graph - Grant the
access content dependency graphpermission at
/admin/people/permissions.
Permissions
Permission Descriptionaccess content dependency graph
View the dependency graph visualization
Usage
Index page
Navigate to /admin/content/dependency-graph to see a table of the 100 most recently changed nodes, each with a link to its graph.
Also accessible via Administration > Content > Dependency Graph.
Graph for a specific node
Visit /admin/content/dependency-graph/{node_id}, or open any node and click the Dependency Graph tab.
The graph displays the selected node as the root and recursively visualizes all referenced entities and their relationships.
Interacting with the graph
Control Action Click a node Open entity details and relationships in the sidebar Zoom in / Zoom out Scale the graph (1.25× / 0.8×) Fit Zoom to fit all visible nodes Fullscreen Toggle fullscreen mode Entity type filter Filter nodes by entity type (root node always visible) Drag Pan the canvas Scroll ZoomEntity Type Color Coding
- Node: Blue
- Paragraph: Purple
- Media: Orange
- Taxonomy term: Green
- File: Yellow
What is Included
The graph traverses entity reference and entity reference revisions fields recursively to build relationships between entities.
What is Not Included
To keep the graph meaningful and focused, the following are excluded:
- Metadata fields:
uid,type,roles,langcode,menu_link,moderation_state,comment - Internal entity types:
user,user_role,node_type,comment_type,workflow,moderation_state - Views, Menus, and Configuration dependencies