Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
views.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Mar 2013 at 20:14 UTC
Updated:
29 Jul 2014 at 21:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
derhasi commentedHere's a first approach for allowing the return of render arrays and passing it forward to the them as render array. String return values are handled as #markup.
In that patch no existing area plugin has been rewritten to use a render array.
I'll do some work on trying to convert the given plugins to render array, before setting it to needs review.
Comment #2
derhasi commentedThere's another patch, that forces plugins to use a render array as render value. The given core plugins were adjusted to suit the return value.
Comment #3
derhasi commentedArg, sorry, there was a wrong "Implements" statement ...
Comment #4
derhasi commentedComment #5
dawehnerThis minor points and this seems to be RTBC!
I guess it should be a sentence with a verb in that case.
Yeah let's fix it here and mark it as public.
Is there a follow up for preview() to not return a rendered output?
Nitpick alarm: Missing "\"
Comment #6
amateescu commentedSounds like 'needs work' to me.
Comment #7
derhasi commentedReworked the patch and opened #1938380: Let ViewExecutable->preview() return a render array.
Comment #9
derhasi commentedComment #10
dawehnerAwesome!
Comment #11
xjm#9: views-area-render-array-1934420-9.patch queued for re-testing.
Comment #12
xjmWorst issue summary ever. Good thing the issue is simple and the VDC team writes clean code. ;)
Comment #13
webchickThis seems pretty straight-forward to me. Agreed on the issue summary. :)
Committed and pushed to 8.x. This looks like an API change between Views 7 and Views 8, so marking needs change notice and moving to the views queue. (I think I remember this being the protocol)
Comment #14
dawehnerSee http://drupal.org/node/1954686
Comment #15
xjmLooks good to me.
Comment #16
derhasi commented@dawehner, in the case of area plugins, those MUST return a render array. Should we change that or update the change notification? Also the change notification talks about plugins in general, is that intended?
Comment #17
dawehnerYes that's intended, this is one big change in VDC. Feel free to polish the change notice.
Comment #18
derhasi commentedOk. So I updated the change notice.
Comment #19
damiankloip commentedThat reminds me, I created #1960014: Empty area handlers need to be rendered for tables earlier based on this issue.