- Assigned to tim.plunkett
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
What are the consequences of this for Layout Builder? π€
Code like \Drupal\Tests\EntityViewTrait::buildEntityView()
attempts to run #pre_render callbacks to simulate rendering, while still leaving it as an array.
\Drupal\Core\Render\Renderer::render()
contains the actual logic, but always returns $elements['#markup']
at the end, not $elements
.
The logic in ::buildEntityView and elsewhere is not a 1:1 match, which could lead to very unfortunate false positives in tests.
Add a method to allow the #type, #lazy_builder, and #pre_render processing while still returning an array
Active
11.0 π₯
Last updated
Blocks and Layouts Initiative. See the #2811175 Add layouts to Drupal issue.
Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
What are the consequences of this for Layout Builder? π€