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
Supporting organizations:
funds the development
Project information
- Project categories: Content editing experience
293 sites report using this module
- Created by jcisio on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.



