Dispatch ImportEntityEvent during content import

Created on 5 May 2025, 9 days ago

Problem/Motivation

\Drupal\Core\DefaultContent\PreImportEvent allows skipping content but nothing else. Having an event fired after $this->toEntity before validation would be great. So ImportEntityEvent? so things can do stuff before validating

Example: XB stores target_id in its component tree, not UUID. Probably other things do this too. So target IDs need to be fixed in dumps if the DefaultContent API's UUID -> ID resolution cannot be fully used

Steps to reproduce

Proposed resolution

Dispatch ImportEntityEvent per-entity once populated and before validation

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

✨ Feature request
Status

Active

Version

11.0 πŸ”₯

Component

default content system

Created by

πŸ‡ΊπŸ‡ΈUnited States mglaman WI, USA

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

Comments & Activities

Production build 0.71.5 2024