Add recursion limit for entity reference exports

Created on 3 July 2025, 12 days ago

Description:

Currently, there is no limit in recursion when exporting entities that contain entity reference fields. This leads to all referenced entities being fully exported, which can result in unnecessarily large exports and performance issues.

Problem:
When a content entity has an entity reference field, the exporter currently exports all referenced entities recursively, without limit.

Desired behavior:
There should be an option to set a recursion limit, e.g., level 1, 2, 3, etc.

By default, if an entity has a reference field:

The referenced entity should not be fully exported

Only a partial export (e.g., UUID, title, type) should be included to maintain the relationship

This would help optimize the export process and prevent deep recursion unless explicitly allowed.

Proposal:
I can work on a patch to implement this functionality.

🐛 Bug report
Status

Active

Version

1.4

Component

Code

Created by

🇨🇴Colombia andresalvarez Bogota

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024