I have the menu item id. I want to display that menu item with its children.
Suppose for example I have menu item
test and it has two children menu items. So I want to load them and display it as
test test1 test2
I tried to load the menu item with the following code.
$menu_content = current(\Drupal::entityManager()->getStorage('menu_link_content')->loadByProperties(array('id' => 1)));
But I am unable to get the children from the variable. Can someone help me here?