Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
menu system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Sep 2015 at 19:15 UTC
Updated:
15 Oct 2015 at 10:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
rashid_786 commentedfiled an issue also to remove the callback itself #2564161.
Comment #3
rashid_786 commentedComment #4
mile23Thanks. :-)
A couple things:
$inherited is documented as being optional, but isn't optional in the code. We should follow the code for this refactoring, so change the docs so $inherited isn't optional.
Adds whitespace.
Comment #5
rashid_786 commentedupdated patch with suggested changes.
Comment #6
NikhilValand commentedIn general, all lines of code should not be longer than 80 characters.
https://www.drupal.org/coding-standards#linelength
In general, all lines of code should not be longer than 80 characters.
https://www.drupal.org/coding-standards#linelength
Comment #7
rashid_786 commentedline length has been reduced less than 80 characters.
Comment #8
lachezar.valchev commentedHi all,
I will make a review on this today :)
BR.
Comment #9
lachezar.valchev commentedHi,
The patch applies nice on the latest 8.0.x-dev.
However, when run it through the Coder, there are a couple of errors listed below.
Doc comment short description must be on the first line.
Whitespace found at end of line.
Line indented incorrectly; expected 6 spaces, found 4.
Comment #10
keopxChanges applied
Comment #11
oenie commentedLooks ok to me, RTBC ?
Comment #12
lachezar.valchev commentedHi,
Patch applies nicely and looks good to me as well.
Regards,
Lachezar
Comment #13
alexpottThese are services - we should be injecting them into the controller properly rather than using
\Drupal.If MenuTestController extended ControllerBase this would be simply a matter of implementing a
createmethod.Comment #14
alexpottAlso given this is a test method I think removal of
menu_test_theme_page_callback()in this issue is fine too. It is test code.Comment #15
joshi.rohit100Comment #16
sdstyles commentedAlso according to #14 removed menu_test_theme_page_callback()
Comment #17
mile23Looks great, except for one thing:
Improper docblock alignment.
Sooooooo close. :-)
Comment #18
sdstyles commentedFixed.
Comment #19
sdstyles commentedComment #20
mile23Diggit. :-)
RTBC unless it fails.
Comment #21
alexpottCommitted 17a9dac and pushed to 8.0.x. Thanks!
Comment #24
andypost