Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
menu system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 Aug 2008 at 20:06 UTC
Updated:
19 Jun 2025 at 04:35 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pwolanin commentedYes, this is a sad and confusing legacy of D5 which was not fully cleaned up in D6. The UI cleanup might help clarify the DX.
Comment #2
Anonymous (not verified) commentedsubscribe
Comment #3
xanoKick.
Comment #4
pwolanin commentedWhile basically everything in the UI could be thus renamed, menu_get_item() is actually getting a router item.
Comment #5
xanoI stand corrected on that.
Comment #6
Bojhan commentedfixed
Comment #7
Anonymous (not verified) commentedWe mark it fixed first. It will close automagically in a cron execution.
Comment #8
Bojhan commentedSorry, thanks for correcting my horrible mistake :P
Comment #9
pwolanin commentedis this fixed? - I think we addressed much of the use in the UI elsewhere, but possible should still address the API
Comment #10
Bojhan commentedAs far as I know did we change it to menu links - but I only know the UI.
Comment #11
Tor Arne Thune commentedIf this was changed in the code, I do not know, but I do know that this won't get into 7.x. Moving to 8.x. Close if the changes have been made in the code as well.
Comment #12
jhedstromThere are still a handful of references to 'menu items', in menu_ui help text and permission descriptions. Aside from that, the move to 'menu links' is almost complete.
Comment #13
pwolanin commentedThis seems like a simple task, but let's constrain it to UI strings.
Comment #14
jenmontgomery7 commentedDrupalcon La Sprint - Working on this
Comment #15
jenmontgomery7 commentedLooks fixed - May have been done already elsewhere
Comment #16
jhedstromHere's a list of files that expose 'menu items' in the UI:
core/modules/views/src/Plugin/views/display/Page.phpcore/modules/menu_ui/menu_ui.moduleComment #17
mikeburrelljr commentedNew contributor here, so any feedback is appreciated... #DrupalConLA
Replaced menu items verbiage for menu links in the following files:
Comment #19
epophoto commentedI took a swing at this. The problem with #17 seems to be that changes were made to routes and functions instead of just to the UI. This patch only changes the ui strings in the files mentioned in #16 along with a few tests that asserted the language that had been changed.
This is my first contributed patch, so I apologize in advance if I stepped on any toes or messed anything else up here.
Comment #20
mikeburrelljr commented@epophoto Tested via SimplyTest.me... This looks good to me. Thanks!
Comment #21
Patrick Storey commentedI am removing the Novice tag from this issue because it looks the task has been completed.
I’m using this documentation as a source: https://www.drupal.org/core-mentoring/novice-tasks#avoid
Comment #22
Patrick Storey commentedAlso gave this a Beta Evaluation so we can get this committed.
Comment #24
epophoto commentedThis looks like the test bot failed to start the test. This is my first patch so I am not sure what to do here, do I re mark it for review or is this automated failure part of the Beta Evaluation process....
The tests had all passed so I am not sure how to proceed...
Comment #27
jhedstromPatch no longer applies.
Comment #28
mikeburrelljr commentedRe-rolling patch.
Comment #29
jhedstromThis looks great, thanks!
Comment #30
xjmThanks everyone for your work here! I've found a couple references to "menu item(s)" in user-facing strings still:
Also, there are still a ton of references to "menu items" in code comments and occasionally test assertion messages. Wouldn't it make sense to add those changes to this patch as well so that the code documentation reflects what the user sees? The table descriptions in
MenuTreeStoragecan also be considered documentation.Then there is the Menu UI permission:core/modules/menu_ui/menu_ui.permissions.yml: title: 'Administer menus and menu items'Renaming this permission would require an upgrade path, so I agree that should be skipped in this issue (and might not be acceptable during the beta). However, let's create a followup issue for it.Edit: what I said before is wrong I think; the permission name is 'administer menu'. So that could probably be changed too.I'd also skip over anything to do with Migrate as that seems to have to do with the D6 source code.
Comment #31
xjmOh, just a general note, please provide interdiffs when updating existing patches. Thanks!
Comment #32
mikeburrelljr commentedUpdated many references to 'menu item(s)' through source. (Ignored core/modules/migrate_drupal references.)
Also, tagged as 'JavaScript' per recent suggestion from @nod_ in a similar thread (to track any changes to js files).
To do:
* Address 'administer menu' change suggested by xjm
Comment #33
mikeburrelljr commentedComment #34
jhedstromThis is awesome mikeburrelljr, thanks!
One small nit:
This should be 'menu links' rather than just 'menu link'.
Comment #36
pwolanin commented@xjm - UI should be done before string freeze, so let's not try to make this perfect in terms of code comments. I'd rather see UI changes happen in this issue, and address stray code stings in other (novice) issues.
Here's a re-roll to get the last patch to apply.
Comment #39
epophoto commentedFollowing the directions here https://www.drupal.org/patch/reroll
I performed a git apply --check on the patch and received no messages which should mean the patch is fine.
Comment #41
sushantpasteNot able to apply patch #36.
Comment #42
sushantpasteComment #43
pwolanin commentedThis is a 8.1 or 9.0.x issue now due to string changes.
Comment #44
drupradReroll for patch #36
Comment #45
sushantpasteNeeds reroll against 8.1.x
Comment #46
alvar0hurtad0Here's the reroll, I've seen several uses of "menu item" on the code, but I've been focus on the reroll.
Comment #47
dawehnerThere are just some unoptimal changes but in general I like the idea of using menu link instead of menu item.
Let's not change CHANGELOG.txt
We should certainly not change the license.
While this change is nice, it feels a bit out of scope ... ?
Comment #59
srilakshmier commentedI am working on it.
Comment #60
srilakshmier commentedRe-rolled the patch.
Comment #62
BS Pavan commentedThe menu.html.twig file is updated in this ticket, so i think we need to update md5 value of file .
Fixing failed test case
Comment #64
naveen433 commentedI am working on it
Comment #65
BS Pavan commentedFixing test case failure
Comment #66
BS Pavan commentedsorry @naveen433 i think i was uploading patch when you commented. I didnt see your message
Comment #67
BS Pavan commentedComment #68
naveen433 commentedmy patch is below please look and review
Comment #69
BS Pavan commentedComment #70
andypostComment #71
benjifisherWhen you tag an issue for usability review, please make it easy for the usability team to review the issue. Update the issue summary:
Most of the time, I prefer to have plain text in the "Proposed resolution" section and screenshots in the "User interface changes" section.
You can also attend the weekly usability meeting to present an issue.
I am adding the tag for an issue summary update and setting the status to NW.
Comment #75
trackleft2Menu items is more correct than menu links IMHO, you don't even have to add links to menus, you can add a bunch of buttons that don't link anywhere, or explicitly make a menu item a non link.
Comment #77
quietone commentedThe issue summary is for fixing 'menu items' in the UI. I searched today and found no instances of 'menu items' in the UI.
There are two instances in tests.
The first one is in an if block in a test that is never reached. That method was committed years ago and may need to examined in another issue. The second is is testing strings from a test module, but the method, doTestDescriptionMenuItems, the assertion is in is never called.
I think this should be closed and another opened to look at the tests.
Comment #78
smustgrave commentedOpened #3500775: Replace use of 'menu items' in tests
Moving this to RTBC because I'm wonder if it should be marked fixed for all the work that happened 10 years ago
Comment #79
nod_Comment #81
xjmIf we're going to do that let's also credit the reviewers. :) Saving credit for historical reviewers.