I need to embed the 2nd level menu that show up in my 2nd level page /maintenance
in the next level page /maintenance/add-task
Drupal does not have this kind of setting, I'm looking a lot in the core files to try to figure out the proper API code to embed, one of my attempts:
$block = \Drupal\block\Entity\Block::load('block_modules_menu_second_level'); $variables['menu_second_level'] = \Drupal::entityTypeManager() ->getViewBuilder('block') ->view($block);
That code is for a simple block, or a custom block. How to evoke the drupal core menu level 2?
What am I missing?