I'm trying to achieve a structure like this in a yml:
$admin_menu_items = array(
array(
"label" => "thisisalabel"
"sub_menu_items" => array(
array("label" => "anotherlabel", "route" => "routename"),
array("label" => "thirdlabel", "route" => "anotherroutename")
)
)
);
So far i've tried this without success:
admin_menu_items:
- { label: "thisisalabel", sub_menu_items:
- { label: "anotherlabel", route: "routename" }
- { label: "thirdlabel", route: "anotherroutename" }
}
Can you guys please help me figuring out the right way for doing this?
Finally i've used a sollution based on Qoop's answers. Here it is:
admin_menu_items:
-
label: "thisisalabel"
sub_menu_items:
- { label: "anotherlabel", route: "routename" }
- { label: "thirdlabel", route: "anotherroutename" }