Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
views.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Jan 2015 at 12:25 UTC
Updated:
5 Mar 2015 at 16:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
alexpottThe patch attached moves the responsibility for calculating the dependencies each display adds to the display plugin. This moves views another step towards using EntityWithPluginCollectionInterface and having even less custom code in View::calculateDependencies().
The comment to add the dependency is removed because we have #2368767: Implement calculateDependencies() in ArgumentPluginBase to get dependencies from validator and default plugins which is taking care of that.
Comment #2
dawehnerI really like that.
Comment #3
alexpottRe-rolled now that #2368767: Implement calculateDependencies() in ArgumentPluginBase to get dependencies from validator and default plugins has landed.
Comment #4
dawehner... it would be nice, if we would have tests for that, I'd guess.
Comment #5
alexpottAdded a display level test to
ViewEntityDependenciesTestComment #6
alexpottOn the advice of @dawehner I added a code comment to explain that each display only calculates dependencies for plugins and handlers it configures.
Comment #7
dawehnerNice usage of array_walk!
Comment #9
olli commentedreroll, removed one use statement and changed @return of getAllPlugins().
Comment #11
olli commentedComment #12
dawehnerThis is still RTBC IMHO.
Comment #13
wim leersThis patch looks awesome!
Comment #14
catchCommitted/pushed to 8.0.x, thanks!