Backend not updating when limiting the menus

Created on 20 August 2025, 13 days ago

Problem/Motivation

When installing babel_menu_link_content for the first time, all menu links are parsed. Then, as site builder, you configure the plugin to limit to certain menus. When submitting the form no links are removed from Babel backend

Steps to reproduce

  • Install babel_menu_link_content module on clean
  • In the babel_source_instance table, check the number of menu_link_content rows.
  • Go to /admin/config/regional/babel/settings
  • Under "Menu Link Content" you will see no menu selected, meaning all the menus are in play.
  • Select one or two menus to narrow
  • Check again the number of menu_link_content rows from the babel_source_instance table. It should be less than the first check but it's the same.

Proposed resolution

Fix it.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇷🇴Romania claudiu.cristea Arad 🇷🇴

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

Comments & Activities

  • Issue created by @claudiu.cristea
  • First commit to issue fork.
  • 🇵🇹Portugal dxvargas

    When installing the site on clean, there are no menu_link_content rows in the babel_source_instance table.
    This means that the described bug doesn't exist. When reproducing the steps, we have 0 such rows in the second step and 0 such rows in the final step.

    In \Drupal\babel_menu_link_content\BabelMenuLinkContentService::batchAddSources() we can see that only custom menu links (menu_link_content) are processed. But after a clean install there are no custom menu links. Like this, adding or removing menus, will have no effect; no rows are added or removed.

    If we add a link through the Drupal administrative interface to a menu, then we can see that the rows will change (by 1) when enabling or disabling this menu in the "Menu Link Content" config.

Production build 0.71.5 2024