1 layout.module layout_menu_item_load_multiple_by_path($path)

Load an individual Layout menu item based on its path.

File

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

Code

function layout_menu_item_load_multiple_by_path($path) {
  $configs = layout_get_all_configs('menu_item');
  foreach ($configs as $menu_item_name => $config) {
    if ($config['path'] === $path) {
      return layout_menu_item_load($menu_item_name);
    }
  }
  return FALSE;
}