Problem/Motivation

Currently there is a huge problem space connected with unsaved entities to be created or updated:
- Ctools created a temporary storage for Views and PageManager
- Inline Entity Form maintains its own storage
- Node preview has one
- Entity Browser has one
- ...

And still...:
- When altering an entity form, there is no simple way to get the (unsaved) parent entity of a paragraph.
- There is no unified API for the storages above.

Proposed resolution

For creating or updating entities in an EntityForm, use a temporary workspace (added in #3095414: Add the concept of workspace providers).
Get Content Locking for free, for better editor experience.
Get preview for all entity forms for free.
Get better DX and maintability.

Remaining tasks

tbd

Comments

geek-merlin created an issue. See original summary.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.