Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Subentity

Security covered Under active development 267 sites

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
Drupal 10–11

Ask your assistant about Subentity

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
13
Tracked since
Mar 2023
Latest release
3 months ago
Releases (12 mo)
7 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
3.x-dev Dev 10–11 Jan 12, 2024
2.0.2 Stable 9–10 Aug 25, 2023
2.0.1 Stable 9–10 Mar 17, 2023