Is it possible to just pass the renderable array to the prepend command without calling drupal_render? Meaning, is drupal_render called on this argument later?
"Other general guidelines" part of META issue description says:
Don't try to do anything new/fancy like returning the renderable array instead of rendering it where theme() was, despite this probably being "better" in many cases it will also incur quite a bit of extra testing overhead.
So I'm not sure that we should pass renderable array here.
I guess that makes sense. We're not introducing a regression by replacing theme() in place. If we want further improvements, those can be introduced in another issue.
I would like to test this particular one further though, before I set to RTBC. Ajax is a tricky little monster in Drupal. Thanks for posting these patches InternetDevels!
Comments
Comment #1
internetdevels commentedLets see...
Comment #3
internetdevels commented1: drupal-core-replace-theme-2177637-1.patch queued for re-testing.
Comment #4
jessebeach commentedIs it possible to just pass the renderable array to the prepend command without calling
drupal_render? Meaning, isdrupal_rendercalled on this argument later?Comment #5
internetdevels commented"Other general guidelines" part of META issue description says:
So I'm not sure that we should pass renderable array here.
Comment #6
jessebeach commentedI guess that makes sense. We're not introducing a regression by replacing
theme()in place. If we want further improvements, those can be introduced in another issue.I would like to test this particular one further though, before I set to RTBC. Ajax is a tricky little monster in Drupal. Thanks for posting these patches InternetDevels!
Comment #7
jessebeach commentedTested and this change is fine. It's small and innocuous.
Comment #8
catchCommitted/pushed to 8.x, thanks!