- Issue created by @pakmanlh
- First commit to issue fork.
- Merge request !6Issue #3509374: Block menu field configuration like Viewmode get lost when a... → (Open) created by rodrigoaguilera
- 🇪🇸Spain rodrigoaguilera Barcelona
I was able to reproduce and opened a MR to provide a workaround.
It gets rid of the "base_hook" in the theme definition since according to the docs it is only used for suggestions.
https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Render%21...This allowed to have suggestions but a when #theme like "menu__field_content__MENU_NAME" was provided and template existed for it Drupal core treats it as a "menu" theme definition and it won't detect the variables for the "menu__field_content" theme definition.
This basically demonstrates how weak was the decision to use a hook definition with double underscores, that confuses the Drupal theme system since is treated as a suggestion of "menu".
Please review the change and confirm it can be a valid solution/workaround.
I will start thinking about a 2.0 version of the module that gets rid of this ugly hack.