convertPageToTemplate

Function

Given a Page Model, return a template object

Parameters

Parameter Type Default Notes
model Required IModel

The Page item model to convert into a template

hubRequestOptions Required IHubRequestOptions

IRequestOptions object, with isPortal, and portalSelf

Returns

Promise<IModelTemplate>
Property Type Notes
data [key: string]: any
item IItemTemplate
itemId string
key string
type string
assets Optional ITemplateAsset[]
dependencies Optional any[]
properties Optional [key: string]: any
resources Optional string[]

Function defined in packages/sites/src/pages/convert-page-to-template.ts:22