Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
node system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Nov 2013 at 09:55 UTC
Updated:
29 Jul 2014 at 23:08 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tim.plunkettThis is a dupe of #2021161: Replace the fallback node listing with a list controller and #1863906: [PP-1] Replace content revision table with a view.
The second one should probably just be done this way, and save the view for later, but the overview one is RTBC.
Comment #2
damiankloip commentedLet's just make this for the revisionOverview method
Comment #3
damiankloip commentedrerolled, injected the other dependencies we need. As that's the in thing at the moment..
Comment #4
dawehnerTopic for a follow up: We could do something like-
-
I wonder whether it would make sense to abstract into the node access controller.
Can we use a library instead?
Comment #5
damiankloip commentedHere is that change to add the attached as a library instead.
I like the idea of adding an access controller for this too!
Comment #6
damiankloip commentedRerolled and made changes for new library stuffs
Comment #7
aron novakAs I see, here you introduce DI for this class, but if i am not mistaken, it's not really usable to alter the content of the revisions overview. As the renderable array there is only alterable that way if we replace the callback at routing level.
Otherwise, i reviewed the patch in #6, it's fine. (However if https://drupal.org/node/1863906 will be fixed, it won't be needed)
Comment #8
dawehnerWell, this is not longer a page callback in strict words.
Mark it as @deprecated for now and remove it in a follow up?
Missing $this->t()
Not sure what the point here is. You can still try to be part of the usual page flow and alter the render array OR alter the route, for example with a view.
Comment #9
damiankloip commentedNeeded a reroll, and quite few changes (like getStorageController -> getStorage). node_revision_list() has also already been removed (yay!) so no point in that @todo anymore. Now using the node storage controller to load the revisions.
Comment #10
damiankloip commentedOh, forgot to remove the Page callback part, and remove node_revision_overview again.
Comment #11
dawehnerPerfect
Comment #13
damiankloip commented10: 2138073-10.patch queued for re-testing.
Comment #14
damiankloip commentedComment #15
xjmReroll for #2247991: [May 27] Move all module code from …/lib/Drupal/… to …/src/… for PSR-4.
Comment #17
damiankloip commented15: 2138073-psr4-reroll.patch queued for re-testing.
Comment #18
damiankloip commentedComment #19
alexpottCommitted 68a6ee1 and pushed to 8.x. Thanks!
Comment #21
olli commentedThese are not used anymore. Filed #2283049: Remove obsolete NodeController::page() method.