ensureRequiredPageProperties

Function

Given a Page Model, ensure that it has all the requires properties set correctly and return a new object

  • ensureRequiredPageProperties(pageModel: IModelTemplate, options: {
    isPortal:
    boolean
    username:
    string
    }) : any

Parameters

Parameter Type Default Notes
pageModel Required IModelTemplate

Page Model object

options Required {
isPortal:
boolean
username:
string
}

Returns

any

Function defined in sites/src/pages/ensure-required-page-properties.ts:11