Problem/Motivation
_menu_link_content_update_path_alias is the only remaining function in menu_link_content.module
Let's deprecate it and move it to a protected method.
Steps to reproduce
N/A
Proposed resolution
Move function to MenuLinkContentHooks it should be protected since it is an underscore function
Since this is so minimal we can add DI at the same time
Add string parameter type
Remaining tasks
Review
User interface changes
N/A
Introduced terminology
N/A
API changes
N/A
Data model changes
N/A
Release notes snippet
N/A
Issue fork drupal-3570863
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3570863-deprecate-menulinkcontentupdatepathalias
changes, plain diff MR !14584
Comments
Comment #3
nicxvan commentedComment #4
nicxvan commentedComment #5
dcam commentedIt's looking good, but you forgot to replace the
$menu_link_managerwith the injected service inentityPredelete().Comment #6
nicxvan commentedGood catch!
I also just outright deleted the .module file since we now have direction to just remove underscore functions and that was the last one.
Comment #7
nicxvan commentedComment #8
dcam commentedMy feedback was addressed. I didn't find anything else to comment on. LGTM.
Comment #9
nicxvan commentedSorry for the ping pong - we got confirmation that callbacks and underscore can be deprecated for removal in 12.
Comment #10
dcam commentedIt's ok. When I was working on issues later yesterday evening that had underscore function removals I figured there would be others getting pulled back.Comment #11
nicxvan commentedJust waiting on tests
Comment #12
dcam commentedThe .module file and
_menu_link_content_update_path_alias()were restored and deprecated. LGTM.Comment #16
catchCommitted/pushed to main and 11.x, thanks!