Active
Project:
Entity Embed
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Plan
Assigned:
Unassigned
Reporter:
Created:
19 Nov 2026 at 17:05 UTC
Updated:
20 Nov 2026 at 15:52 UTC
Jump to comment: Most recent
Generated with the help of an LLM.
8.x-1.x keeps code for backwards compatibility that the next major version can drop. This issue tracks what to remove in 2.0.x.
Remove in 2.0.x:
src/Plugin/CKEditorPlugin/DrupalEntity.php (already @deprecated in entity_embed:8.x-1.7 and is removed from entity_embed:2.0.0), js/plugins/drupalentity/, the CKEditor 4 to 5 upgrade plugin (src/Plugin/CKEditor4To5Upgrade/EntityEmbed.php) and the entity_embed_ckeditor_test test module. Core removed CKEditor 4 in Drupal 10.ckeditor module on Drupal 11, with support until December 2026. The CKEditor 4 to 5 upgrade plugin is already unused on Drupal 11 and is removed from 8.x-1.x in #3639510: Remove the CKEditor 4 to 5 upgrade plugin, which can't run on Drupal 11.@EntityEmbedDisplay annotation (src/Annotation/EntityEmbedDisplay.php) and annotation discovery in EntityEmbedDisplayManager. Plugins should use the #[EntityEmbedDisplay] attribute (#3554612: Not supporting attribute discovery, change record: https://www.drupal.org/node/3639484).data-entity-embed-settings to data-entity-embed-display-settings, and data-entity-id lookups. The dialog stopped writing data-entity-id in 8.x-1.0-alpha2 (#2706051), but older, hand-written and migrated content still has it, and the filter only adds data-entity-uuid to the rendered output, not the stored text. Deprecate it in 8.x-1.x first (#3639825: Deprecate data-entity-id in embeds). In 2.0.x, remove the lookup with an update path that rewrites stored embeds to UUIDs, and add a constraint to the entity_type config schema so only entity types with a UUID key can be chosen (today only the embed button form enforces this).data-langcode: stop reading and writing it. #3116547: Host translation shows incorrect translation of embedded entity makes the filter ignore it in 8.x-1.x, so the embed follows the host text's language. In 2.0.x, remove it everywhere else:
EntityEmbedDialog: the translation lookup for the preview and the hidden data-langcode fields.drupalEntityLangCode attribute mapping in editing.js and <drupal-entity data-langcode> in the DrupalEntity plugin's elements.EntityEmbedDisplayBase::getLangcode(): drop the fallback to the attribute, so it always returns the current content language.data-langcode from filter_html's allowed HTML in text formats, if it's still listed there once the CKEditor 5 plugin stops providing it.Stored content can keep the attribute, since nothing reads it. CKEditor 5 drops it the next time the content is edited.
Comments
Comment #2
dave reidComment #3
dave reidComment #4
dave reid