• import { getMenuPageByHref } from '@src/hylo-components/utils/hylo/hylo';

    Searches through a menu object for a page with the given href. The object has to have the structure like defined by the django menu template "menu/menu_json.html".

    The search is recursive. Returns null if no page were found.

    Parameters

    • href: string

      the slug of the searched page

    • menu: any[]

      the menu object in which the page is searched in

    Returns any

Generated using TypeDoc