Subentity
The Subentity module allows you to create entities that are always attached to a parent entity, functioning similarly to how field collections worked in Drupal 7. You can define new subentity types and reference them from any parent entity using an entity reference field.
This module supports subentity, a kind of entity which does not exist independently, it always attaches to a parent entity.
Similar to field_collection in Drupal 7 but for Drupal 8+. Similar to paragraphs but not another paragraph_type.
To begin with, use the Drush generator:
drush generate subentity
This will create a new subentity type, the same way as drush generate content-entity but the new entity type is a subentity (it always is attached to a parent entity, so no new module is created).
You will be able to reference your subentity to any parent entity through entity_reference field type.
⚠️ Breaking changes
- Since 3.0.0-rc3, there are changes about custom subentity type twig template definitions, please see this change record
- Since 3.0.0-rc4, there are changes impacting CSS class naming for custom subentity type, please see this change record
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
Release Timeline
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 3.0.0 | Stable | 10–11 | Jul 10, 2026 | ||
| 4.0.x-dev | Dev | 11 | Jul 10, 2026 | ||
| 3.0.x-dev | Dev | 10–11 | Jun 5, 2026 | ||
| 3.0.0-rc6 | Pre-release | 10–11 | Dec 19, 2025 | ||
| 3.0.0-rc5 | Pre-release | 10–11 | Dec 17, 2025 | ||
| 3.0.0-rc4 | Pre-release | 10–11 | Dec 12, 2025 | ||
| 3.0.0-rc3 | Pre-release | 10–11 | Dec 5, 2025 |