Needs review
Project:
Menu Multilingual
Version:
2.0.0
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Mar 2021 at 21:12 UTC
Updated:
28 Jun 2026 at 12:53 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jaroslav červený commentedComment #3
jaroslav červený commentedComment #4
vlad.dancerHey @Jaroslav Červený, thanks for the patch.
It looks good to me, but it would be awesome if you could write test for this patch.
Probably we need to place this test inside MODULE_ROOT/tests/modules a new module that has dependency on Group module.
See this `core/modules/aggregator/tests/modules/aggregator_test_views/aggregator_test_views.info.yml`
and `\Drupal\Tests\menu_multilingual\Functional\MenuMultilingualMenuBlockTest::setUp`
Comment #5
jaroslav červený commentedMy previous `group_content_menu` patch stopped working after the update because 2.x no longer uses the old block
class override approach. What fixed it for us was:
- adding `menu_multilingual_block_view_group_content_menu_alter()`
- extending `Helpers::isMenuBlock()` to recognize `group_content_menu` via `getBaseId()`
With that change, the multilingual block settings appear for `group_content_menu` blocks again and untranslated items
are filtered correctly. I also added a functional regression test for this behavior.
Comment #6
jaroslav červený commentedComment #7
jaroslav červený commented