crelte / routing / Site
Class: Site
A Craft Site
Constructors
Constructor
ts
new Site(obj): Site;Parameters
obj
Returns
Site
Properties
handle
ts
handle: string;The handle of the site
id
ts
id: number;The id of the site
language
ts
language: string;The language of the site
ex: de-CH
name
ts
name: string | null;The name of the site
primary
ts
primary: boolean;Is this the primary site
url
ts
url: URL;The base url of the site
Accessors
uri
Get Signature
ts
get uri(): string;Returns the uri of the site
Never ends with a slash
Returns
string