How to replicate:

  1. Create a new menu with a few sample links (not the pre-installed "main" etc)
  2. Place the menu block for the menu in your layout and give it a unique machine name.
  3. Place a second instance of the same menu block in your layout and give it a unique machine name different from the first.
  4. Turn on and view theming suggestions for each with render cache on and off.

Issues & Notes:

  1. The theme suggestions for each block should be different due to different assigned machine names but instead it duplicates the first onto the additional instances leaving no way to use a different TWIG template for each menu block.
  2. When render cache is off we get different suggestions for each block but instead of using the assigned machine name it appends the first instance machine name with --2 etc for the additional instances.
  3. Again note this isn't an issue with the already provided main menu. Just multiple instances of menu blocks for a new menu.

Comments

Soundvessel created an issue.

Soundvessel’s picture

Issues

4. There is also a case where main menu block will not respect it's machine name if the block is disabled but supplied to a page template e.g. $variables['content_row_menu_blocks'] = entity_load('block', 'mainnavigation_content_rows')->getPlugin()->build();