Improve CustomElement::createFromRenderArray() to better handle entites that render to custom elements

Created on 12 April 2023, about 1 year ago
Updated 30 April 2024, about 2 months ago

Problem/Motivation

When a $render array for rendering an entity view mode is passed to createFromRenderArray(), and this renders into custom elements, we do want a proper custom-elements tree as result.

Steps to reproduce

see πŸ“Œ Views support Fixed

Proposed resolution

Take code from https://git.drupalcode.org/project/custom_elements/-/blob/8.x-2.x/src/Pr... and bring it into createFromRenderArray().
Also, we might have to do execute render() without the renderPlaceHolder() step, such that the first entity-builder renders into the render array with #custom_elements.

πŸ“Œ Task
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡¦πŸ‡ΉAustria fago Vienna

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024