fetchSiteModel

Function

Returns site model given various kinds of identifier

Parameters

Parameter Type Default Notes
identifier Required string

a site item ID, site hostname, enterprise site slug, or full site URL

hubRequestOptions Required IHubRequestOptions

Returns

Promise<IModel>
Property Type Notes
item IItem
data Optional [key: string]: any
resources Optional [key: string]: any

Function defined in common/src/sites/fetchSiteModel.ts:13