- Issue created by @kristiaanvandeneynde
The experimental widget does not support content moderation, nor does it support translation. See:
We've tried to make it work, but both issues take a wildly different approach to get around the constraints of the current implementation where parts of a content entity form are mimicked. In the translation issue, the taken approach was even marked as something that cannot be committed due to it touching the LayoutParagraphsLayout class.
Now, layout_paragraphs does work with content moderation and translation when using the regular edit, translate and revision form pages. So rather than trying to reinvent the wheel and manually massaging forms, form states, form displays, temp stores, etc. wouldn't it be better to simply load the same form we have in the admin UI, but reduced in size?
We could filter on just the paragraphs and content_moderation fields.
Try to use experimental widget on a multilingual site with content moderation and see your data get corrupted.
Load the forms that we know work, without any alterations. Just reduce them to the bare minimum using an allowlist.
Approve or deny this feature request, preferably with feedback.
Very little, look and feel can largely remain the same
Experimental widget does the same, but functions differently internally
No data corruption when using the experimental widget
Active
2.2
Code