Edit on GitHub
Jump to docs navigation

Twig Components / Methods / menu_array

menu_array(name = null) is a Twig function to return an array of the menu items defined in the menu.yaml file for the given name. If name is null, the array contains the definition for the first menu in the file. The menu_array function is used internally as part of the previous menu() function.

See the Twig components menu documentation for further info.

Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.