Map menu ids like main-menu when migrating node types

Created on 11 September 2018, over 6 years ago
Updated 14 March 2024, about 1 year ago

While working on a migration, I discovered that some content types were missing the Main Menu setting checked at Available menus. For example, the page content type had the following menu settings:

This is the resulting content type in Drupal 8. Notice that Main Menu is not set:

I noticed that Main Menu's machine name in Drupal 7 is `main-menu` while in Drupal 8 this is `menu`. I found out that the menu migration takes this into account and also extends it to other menus whose machine names have changed:

We need to do this same mapping at the node type migration in order to get the expected results.

πŸ› Bug report
Status

Fixed

Version

10.2 ✨

Component
MigrationΒ  β†’

Last updated about 14 hours ago

Created by

πŸ‡ͺπŸ‡ΈSpain juampynr

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

Merge Requests

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