• getContextActivities function.

    Parameters

    • path: string

      The path of the parent page.

    • getEnglishName: ((key) => string)

      The function to translate a page name to english.

        • (key): string
        • Parameters

          • key: string

          Returns string

    Returns undefined | {
        grouping?: undefined;
        parent: {
            definition: {
                name: {
                    en: string;
                };
                type: string;
            };
            id: string;
        }[];
    } | {
        grouping: {
            definition: {
                name: {
                    en: string;
                };
                type: string;
            };
            id: string;
        }[];
        parent: {
            definition: {
                name: {
                    en: string;
                };
                type: string;
            };
            id: string;
        }[];
    }

    • The contextActivities part of an xAPI statement.

    Remarks

    getContextActivities presents a function that can be used to get the contextActivities part of an xAPI statement.

Generated using TypeDoc