1 layout.module layout_menu_item_load_all()

Return an array of all menu items as fully loaded LayoutMenuItem objects.

Note this operation may be expensive. It should only be called in areas where the results will be cached, e.g. on menu rebuild.


core/modules/layout/layout.module, line 1095
The Layout module creates pages and wraps existing pages in layouts.


function layout_menu_item_load_all() {
  $configs = layout_get_all_configs('menu_item');
  $menu_item_names = array_keys($configs);
  return layout_menu_item_load_multiple($menu_item_names);