Active
Project:
Drupal core
Version:
main
Component:
render system
Priority:
Normal
Category:
Plan
Assigned:
Unassigned
Reporter:
Created:
9 Nov 2025 at 15:11 UTC
Updated:
9 Nov 2025 at 17:35 UTC
Jump to comment: Most recent
In an age where static analysis thrives, passing around RenderebleInterface is preferrable over passing "naked" RenderArrays. (An array can be anything, a Renderable is typed.)
Gradually replace passing around render arrays w/ passing around RenderableInterface objects (in child issues).
Some thoughts:
- Provide a blessed Renderable object with good DX in core.
- Allow RenderableInterface as a return value e.g. in EntityInterface::label(). (How can a deprecation dance be done for a return type extension? Prior examples?)
...
Comments
Comment #2
geek-merlinComment #3
ghost of drupal pastContinue from https://www.drupal.org/project/drupal/issues/3525331#comment-16227159 , a full attempt failed but the partial attempt described there would work.
To recap
Comment #4
geek-merlin@ghost of drupal past Terrific.
Ditched quickly through the source. ElementInterface is NOT RenderableInterface, so it looks like the other issue aims higher than this one. Do i get this right?