Part of #1971384: [META] Convert page callbacks to controllers
For instructions on how to convert a page callback into a controller, see the WSCCI Conversion Guide.
| Comment | File | Size | Author |
|---|---|---|---|
| #17 | 1987812-system_admin_index-controller-7.patch | 5.33 KB | oenie |
| #16 | 1987812-16.patch | 5.33 KB | jibran |
| #13 | 1987812-system_admin_index-controller-6.patch | 5.39 KB | oenie |
| #10 | 1987812-system_admin_index-controller-5.patch | 5.4 KB | oenie |
| #8 | 1987812-system_admin_index-controller-4.patch | 5.39 KB | oenie |
Comments
Comment #1
oenie commentedFirst try at a patch, with help from the code in core/update/lib/Drupal/update/Controller/UpdateController.php
Comment #2
dawehnerThis looks really good already. Here are just some small nitpicks needed.
Should be \Contains...
new empty line.
Constructs a AdminController object.
Needs @return
Let's return a render array instead of directly render it.
Comment #3
oenie commentedCouldn't resist to do a quick new patch before bed.
Previous patch forgot to remove the page callback function from system.admin.inc
Comment #4
dawehnerLet's move this new file into a "Controller" directory, just to make it more consistent.
Comment #5
dawehnerLet's move this new file into a "Controller" directory, just to make it more consistent.
The start with an "A" and end with a dot :)
Comment #6
oenie commentedUpdated + REALLY added the removal of the old page callback function from system.admin.inc
Comment #7
dawehnerI'm sorry but the patch does not apply anymore.
Comment #8
oenie commentedReroll of patch 3
Comment #10
oenie commentedAlthough it seems the testbot fluked, a new patch to correct the location of the ControllerInterface.
Comment #11
amateescu commentedLooks good to me.
Comment #12
alexpottNeeds a reroll
Comment #13
oenie commentedRerolled
Comment #14
dawehnerGreat. The page also looks fine on manual testing.
Comment #15
alexpottNeeds a reroll...
Comment #16
jibranReroll
Conflict
Resolved
Comment #17
oenie commentedReroll
Comment #18
oenie commented@jibran: thanks for the effort, but it's confusing when the issue is assigned and then someone else starts fixing it...
Comment #19
jibran@oenie I do apologies for that. :) In my defiance I just want to reroll it ASAP and last patch was posted on "May 27, 2013".
Let's RTBC because no code change.
Comment #20
alexpottCommitted 5a4dceb and pushed to 8.x. Thanks!