Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The comment in the menu_link_content_install()
code says:
Add a higher weight so that
menu_link_content_path_alias_update()
is called aftersystem_path_alias_update()
clears the path alias cache.
This isn't anymore necessary, as system_path_alias_update()
doesn't exist and its code has not been moved to another hook.
menu_link_content_install()
can be removed.
Comment | File | Size | Author |
---|---|---|---|
#4 | remove-menu-link-content-install.patch | 921 bytes | vints24 |
Comments
Comment #2
apadernoComment #3
apadernoI apologize: The link in the documentation page created the issue with the wrong version, and I didn't notice it.
Comment #4
vints24 CreditAttribution: vints24 as a volunteer and commentedI am at Amsterdam 2019 (DrupalCon) and am proposing this patch if the function will be removed.
Comment #5
StevenAvelino CreditAttribution: StevenAvelino as a volunteer commentedAfter reviewing it, the patch removes the function that was asked to be removed.
Comment #6
apadernoComment #7
apadernoComment #8
Sutharsan CreditAttribution: Sutharsan at LimoenGroen commentedThis issue removes a function from menu_link_content.install. Is this BC breaking or is any *.install file part of "The installer" as in the D8 DC policy https://www.drupal.org/core/d8-bc-policy and therefore considered @internal?
Comment #9
apadernoHook implementations should not be considered part of the Drupal API, which means that no module should assume there is a
menu_link_content_install()
function and call it directly.Comment #10
vints24 CreditAttribution: vints24 as a volunteer and commented@kiamlaluno,
This change is necessary or not for the 8.9.x?
Or need to do something else?
Thanks
Comment #11
amateescu CreditAttribution: amateescu for Pfizer, Inc. commented@kiamlaluno is correct in #9, I think this patch is good to go on all supported branches, including 8.8.x.
Also, reclassifying as a bug because this is removing dead code.
Comment #12
alexpottI don't think this is a bug fix per se.
Committed and pushed 80b5dd6b08 to 9.0.x and 9455fc7a15 to 8.9.x. Thanks!