fetchSite

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

Function defined in packages/common/src/sites/index.ts:13