Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
menu system
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Mar 2014 at 18:50 UTC
Updated:
29 Jul 2014 at 23:26 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dawehnerThere we go.
Comment #3
dawehnerDamn.
Comment #5
dawehnerThis should be it.
Comment #7
dawehnerThis is it.
Comment #8
dawehner7: maintainance_site_is_offline-2214209-7.patch queued for re-testing.
Comment #10
dawehnerRerolled.
Comment #11
dawehnerThis is one more step to get rid of menu.inc
Comment #13
dawehnerMaybe now
Comment #15
dawehnerThere we go.
Comment #16
dawehnerRerolled
Comment #17
ParisLiakos commentedwhat about also moving those constants here?
$this->t()
Comment #18
dawehnerThank you for the review
There we go.
Comment #20
dawehnerMIssed some spots.
Comment #21
ParisLiakos commentedLooks good!
lets add use statements and make those less ugly, so i can rtbc this:P
Comment #22
dawehnerThe reason why I skipped it was that we always have the same classname in there, so it would be a use as statement, which seemed a bit bad :(
Comment #23
tim.plunkettThat's three ifs that could be combined if desired. Only the fourth has an else...
I also think we should have a use statement, but it really is just preference.
Comment #24
dawehnerGood idea!
Comment #25
dawehner24: 2214209-24.patch queued for re-testing.
Comment #26
ParisLiakos commentedCan we make this if more readable by assigning this check to each variable?
so this ends up to be like:
this needs the StringTranslationTrait now
Comment #27
dawehnerFixed all those points.
Comment #28
ParisLiakos commented$is_maintenance_route should have NOT in front of it:)
Comment #29
dawehnerJust hacked the patch file. ups...
Comment #31
ParisLiakos commentedThanks!
Comment #32
catchs/can_access_maintance/can_access_maintenance/
Should we make this isSiteInMaintenance or something? Not sure we really use 'offline' anywhere much now.
Comment #33
ParisLiakos commentedI am sorry, "maintenance" is a hard word:P
Dunno, the constants are named offline and online.
Its a protected method anyway so we can change its name anytime we want..
Also #2239005: Remove the '_maintenance' request attribute discuss about turning this thing to a standalone service, so we could figure out the naming there
Comment #35
ParisLiakos commented33: 2214209-33.patch queued for re-testing.
Comment #37
ParisLiakos commented33: 2214209-33.patch queued for re-testing.
Comment #38
ParisLiakos commentedComment #39
dawehnerThe suggested method name makes is clearer to understand, indeed.
Comment #40
dawehnerBut yeah the method is not touched by this patch, back to RTBC
Comment #41
catchThe method is introduced by the patch.
Comment #42
dawehnerdamnit, never trust me!
Comment #43
ParisLiakos commentedfine. lets rename it...lets also get rid of the translation property declaration since its registered in the trait
Comment #44
dawehnerThank you
Comment #45
xjmReroll for #2247991: [May 27] Move all module code from …/lib/Drupal/… to …/src/… for PSR-4.
Comment #46
catchCommitted/pushed to 8.x, thanks!