Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
menu.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jun 2013 at 14:40 UTC
Updated:
29 Nov 2014 at 22:22 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tim.plunkettComment #2
tim.plunkettI was thinking of menu_link, not menu...
Comment #3
tim.plunkettComment #4
berdirHm, I do agree that getLangcode() (although that doesn't really match with most other EntityInterface methods, e.g. language()) would be useful, but seems like the wrong issue to add it :)
Also won't apply anymore.
Comment #5
tim.plunkettRerolled. Will conflict with #2084197: Uninstalling menu module removes all custom menus.
Comment #6
slv_ commentedGiving this a go, if that's ok!
Comment #7
slv_ commentedGot a patch for this, bit airport's WiFi said no more WiFi for the laptop. Will upload it tonight!
Comment #8
slv_ commentedPatch attached.
Comment #9
slv_ commented#8: 2030645-expand-menu-with-methods.patch queued for re-testing.
Comment #10
slv_ commentedRe-testing to see if it still passes. Any feedback? =)
Comment #11
slv_ commented#8: 2030645-expand-menu-with-methods.patch queued for re-testing.
Comment #12
mike.davis commentedThe main thing I can see is:
This member variable needs to be reverted back to being public for the patch - https://drupal.org/node/2016679#comment-7616179
Comment #13
miraj9093 commentedpatch is not applying ...
Comment #14
miraj9093 commentedpatche rerolled
Comment #16
l0keReroll the patch.
Comment #17
dawehnerIs there a reason we do have this setter method even nothing in core uses it? I would though agree that for consistency introducing them would be great idea!
Comment #18
m1r1k commentedComment #19
alexpottWe have not been adding setters that are completely unused in the other issues.
Can this issue also protect the id and label properties? Thanks.
Comment #20
joecodes commentedMaybe we should set those as private methods? Btw latest patch patched cleanly (comment #16)
Comment #21
l0keRemoved setters. Make id and label properties protected.
Comment #23
l0keWhoops, missed this label usage in test.
Comment #24
mile23Reroll with conflicts resolved. Let's see if the testbot disagrees with my reroll-fu.
Comment #26
mile23It looks like the patch in #24 includes out-of-scope changes.
Will now re-roll #21 and include interdiff from #23.
Comment #27
mile23OK, so reroll with patch from #21 and interdiff from #23, rebased to 8.0.x. Success with zero conflicts.
Comment #28
mile23YesCT says this test needs to be refactored, to figure out if we need a setLabel().
This is as far as we got looking at the patch, will come back later.
Comment #29
mile23Since the point of the test is to show the cache miss, and since I can't find any instances of using set('label') within the menu_ui module, I'd say it's safe to not add a setter for label.
Comment #30
dawehnerIn case we would like to have we should start to think about introducing one on the base entity level.
Comment #31
alexpottReclassifying as a bug since exposure of properties as public allows code to not use the API eg
->idvs->id(). This makes Drupal more stable and prevents bugs. Nice work.Committed b34bcec and pushed to 8.0.x. Thanks!
Comment #34
yesct commentedDid we want a test for getDescription() ?