Description
Follow-up to #8528
The new import extension implements the concept of overlays to augment an existing configuration. DOMRenderExtension could use a similar mechanism to allow runtime modifications of the DOMRenderConfig either for a particular request (e.g. $generateHTMLFromNodes), or when some runtime situation requires a change (e.g. an extension is enabled or disabled). We may also want to add another argument to domOverride to allow an override to be elided at this decision point so we can build an optimal render program based on folding those constant decisions out.
Description
Follow-up to #8528
The new import extension implements the concept of overlays to augment an existing configuration. DOMRenderExtension could use a similar mechanism to allow runtime modifications of the DOMRenderConfig either for a particular request (e.g.
$generateHTMLFromNodes), or when some runtime situation requires a change (e.g. an extension is enabled or disabled). We may also want to add another argument todomOverrideto allow an override to be elided at this decision point so we can build an optimal render program based on folding those constant decisions out.