Possible sub-module for menu links + uuid

Created on 2 March 2020, almost 5 years ago
Updated 26 July 2023, over 1 year ago

The current menu links features integration is flawed.
Menu links do not have a machine name or uuid natively, they are identified by auto-increment mlid.
The current implementation circumvents this limitation by crafting a string id from values found in the menu link, such as the link path.
This is not an ideal solution.
Fixing the 'menu_links' component itself would be difficult if we want to keep backwards compatibility.

It was proposed in #3085880-33: Revisit UUID handling for menu links to introduce a new sub-module (or standalone contrib module) features_menu_uuid, which:
- would add a 'uuid' column to the 'menu_links' table via hook_schema_alter()
- add a features component 'menu_links_uuid' as an alternative to the old 'menu_links' component, which uses the uuid.

I am going to leave it to the author (DamienMcKenna) to upload files and patches here.

This new submodule would be unlike previous functionality in features:
- This would be the first submodule we add. So far, everything was done in the base module.
- This would be the first time that a part of features actually changes a database schema.

We need to determine the pros and cons of keeping this within features.

But even if it becomes a dedicated separate contrib module, we can still use this issue for initial preparation - if you want.

💬 Support request
Status

Fixed

Version

2.0

Component

Menu

Created by

🇩🇪Germany donquixote

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024