Also Swap Menu Items

Created on 7 May 2025, 3 months ago

Problem/Motivation

In testing, I've run into a few situations where it would have been really helpful if this tool also took care of swapping node references in the menu structure. Currently, the Drupal menu system preserves the old node reference post swap (especially if it is still published, and, I assume, even if it isn't which could create a 404).

Proposed resolution

Let's extend the swap action to include replacing references of the old node with the new one. I don't think this needs a new config option-- it should just happen if the old node is referenced by a menu item.

Remaining tasks

  • Wait until 3521422 📌 Create Node Swapper service API Active is complete
  • Write the new menu swapping feature in the new Node Swapper API implementation

User interface changes

None

API changes

New menu swapper functionality.

Data model changes

None

📌 Task
Status

Postponed

Version

1.2

Component

Code

Created by

🇺🇸United States abenbow Asheville, North Carolina

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024