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
    }) : IModel

Parameters

Parameter Type Default Notes
pageModel Required IModelTemplate

Page Model object

options Required {
isPortal:
boolean
username:
string
}

Returns


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