Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Content Translation Redirect Module content_translation_redirect crossed 1,000 active installs.

Dynamic Entity Reference

29,806 sites Security covered
View on drupal.org

This module allows you to create a single field that can reference multiple types of entities, such as users, nodes, or taxonomy terms, all within the same field. It also supports mixing configuration entities with content entities.

Overview

Dynamic Entity Reference provides a field type/widget/formatter combination for Drupal that allows an entity-reference field to reference more than one entity type.

Features

Create a single field to hold references to Users and Nodes, Or Terms and Nodes, or all three.
From 5.x also supports mixing config entities with content entities.

What version should I use?

Please read the 5.x release notes
New projects should start with the 5.x series.
Users on the 3.x and 4.x series should take a backup and then test the update path to 5.x and report back on this issue

5.x series

This will be the one version moving forward. Once a stable tag is cut 3.x and 4.x will be deprecated.
This version allows all content entities as referenceable entities. This version also allows all config entities as referenceable entities but it is only configurable programmatically. The content and config entities can be referenced in the same field as well. This is achieved with native Drupal typed-data features.

3.x series

This version only supports content entities with integer IDs as referenceable entities. It doesn't allow content entities with string IDs as referenceable entities.

4.x series

This version allows all content entities as referenceable entities. This version also allows all config entities as referenceable entities but it is only configurable programmatically. The content and config entities can be referenced in the same field as well. In contrast to the 5.x branch this relies on database triggers which are not supported on all hosting providers including Acquia.

Known problems

Please use the issue queue to report problems.issue_tags=DER%20issue">DER issues in core.

Credits

Development being undertaken by @larowlan and @jibran of PreviousNext

Tutorials

  • Drupal modules the one percent did a screencast of this module in action (4 minutes long)

Activity

Total releases
7
First release
Feb 2025
Latest release
1 week ago
Releases (12 mo)
6 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Release date
5.0.0-rc1 Pre-release Jul 7, 2026
5.x-dev Dev Jun 28, 2026
3.2.2 Stable Jun 21, 2026
4.0.0-alpha7 Pre-release Jun 21, 2026
4.0.0-alpha6 Pre-release Feb 2, 2026
4.0.0-alpha5 Pre-release Nov 12, 2025
3.2.1 Stable Feb 25, 2025