Dispatch ImportEntityEvent during content import

Created on 5 May 2025, 6 months 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

Merge Requests

Comments & Activities

  • Issue created by @mglaman
  • Pipeline finished with Failed
    12 days ago
    Total: 176s
    #621805
  • Pipeline finished with Success
    12 days ago
    Total: 1002s
    #621828
  • Pipeline finished with Failed
    12 days ago
    Total: 671s
    #621925
  • Pipeline finished with Failed
    12 days ago
    Total: 192s
    #621931
  • Pipeline finished with Failed
    12 days ago
    Total: 228s
    #621935
  • Pipeline finished with Success
    11 days ago
    Total: 632s
    #621966
  • Pipeline finished with Success
    6 days ago
    Total: 582s
    #627690
  • Pipeline finished with Success
    6 days ago
    Total: 851s
    #627743
  • Pipeline finished with Failed
    5 days ago
    Total: 248s
    #628437
  • Pipeline finished with Failed
    5 days ago
    Total: 218s
    #628726
  • Pipeline finished with Failed
    5 days ago
    Total: 134s
    #628741
  • Pipeline finished with Failed
    5 days ago
    Total: 172s
    #628767
  • Pipeline finished with Failed
    3 days ago
    #631361
  • Pipeline finished with Failed
    3 days ago
    #631409
  • Pipeline finished with Failed
    2 days ago
    #631973
  • Pipeline finished with Failed
    2 days ago
    Total: 154s
    #631974
Production build 0.71.5 2024