- Issue created by @Graber
- 🇳🇿New Zealand quietone
Changes are made on on 11.x (our main development branch) first, and are then back ported as needed according to the Core change policies → .
Currently modal dialog subforms are used in many places in core and contrib, for example:
and many more..
However, every single one has its own implementation which is more of a workaround where either the parent form is not really a form but a page with some buttons or if it's a form, it's not being rebuild properly in subform submit but just some of its data is manipulated.
We could have a generic dialog subform API used in all those places.
Such a solution has already been created in the
Drupal LMS →
module and allows defining endless nesting of entities and other data structures with dialog forms on top of other dialog forms (the module allows to reference newly created entity which references another newly created entity to the parent entity and also passing data from one parallel dialog form to another where form steps are different forms).
This dialog subform API can be extracted form the Drupal LMS module and placed in Drupal Core or in another contrib module initially. Currently it adds possibility to code endlessly nested and chained forms including entity forms and Views on a single page.
Structure:
None or various improvements in different places in core and contrib (see example dialog subform usage at the top)
New dialog subform API
Active
11.1 🔥
ajax system
Changes are made on on 11.x (our main development branch) first, and are then back ported as needed according to the Core change policies → .