Generated with the help of an LLM.

Problem/Motivation

The filter still loads an embedded entity by data-entity-id when data-entity-uuid is missing. The dialog stopped writing it in 8.x-1.0-alpha2 (#2706051), and 2.0.x plans to remove the lookup (#3639495). Sites that still rely on it get no warning today.

Proposed resolution

  • When the filter falls back to data-entity-id, log a deprecation warning naming the entity type and ID, so sites can find and fix that content.
  • Stop recommending data-entity-id in the README's allowed HTML instructions.
  • Add a change record: data-entity-id is deprecated in 8.x-1.9 and removed in 2.0.0; re-save the embed in the editor, or replace the attribute with data-entity-uuid.
  • When a content entity is saved, replace data-entity-id with data-entity-uuid in its formatted text fields that use the Entity Embed filter, so content converts as it's edited.

Remaining tasks

  • Check whether CKEditor 5 keeps data-entity-id when content that only has the ID is edited and saved. If it drops the attribute, the embed breaks, and that needs fixing here.
  • Change record.
  • Decide between the log message and a Drush command that lists content still using the attribute.

Comments

dave reid created an issue. See original summary.

dave reid’s picture

Version: 2.0.x-dev » 8.x-1.x-dev
dave reid’s picture

Issue summary: View changes