Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
views.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
10 Oct 2012 at 14:13 UTC
Updated:
29 Jul 2014 at 21:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
damiankloip commentedtagging
Comment #2
dawehnerI think the best way to do this would be probably to actually move this into a global helper method because token form help might be helpful on:
Comment #3
damiankloip commentedI was talking to tim.plunkett yesterday and agreed this would be good to just move into AreaPluginBase first, then move this later if we need to. I am also working on actual token integration too, so we will see. Either way, I think this should move :)
I was thinking something like this...
Comment #4
damiankloip commentedComment #5
dawehnerI guess Helper should be lowercase here, maybe the description could make it clear that the form is altered and not returned, but i don't care that much about that.
I know this is sort of out of scope, but couldn't we all this just replace by proper render arrays?
Comment #6
damiankloip commentedThis is untested, but how about this?
Comment #7
dawehnerThat's nice, what about help instead?
Comment #8
damiankloip commentedFine! ;) How about this?
Comment #9
dawehnerAwesome!
Comment #10
xjmComment #11
fastangel commentedI attached one patch with the reroll.
Comment #12
damiankloip commentedThis is fine, it was RTBC before....
Comment #13
damiankloip commented.
Comment #14
webchickAll of this looks very straight-forward, apart from this:
Like the review I did this weekend, the old code makes a ton more sense to me. I have no idea what an "AreaPluginBase" is, and the PHPDoc for that class tells me:
Not. Helpful. :)
I asked damian on IRC and he said:
"An area plugin is the base plugin class we use for Header, footer, empty areas in views."
That's much more helpful, though I'm not sure I would call a thing with such a description an "area plugin."
ANYWAY.
None of that is related to the patch at hand, which looks fine to me now that I understand what an AreaBasePlugin is (this is just moving the token integration into the base class so all derivations can use it), so...
Committed and pushed to 8.x.
But let's get a follow-up to both document and possibly rename AreaPluginBase cos that shit is whack. :)
Comment #15
xjmYep, properly documenting the base plugin and handler types is our next priority for documentation. It might be after Dec. 1 but it's also one of the few documentation tasks I'm okay with doing before then and it's my next priority. :) There isn't really a better name for it I don't think, but it does need docs to say WTF it is.
Comment #16.0
(not verified) commentedUpdated issue summary.