Saltar al contenido principal

Function: publicSiteInfo()

function publicSiteInfo(siteUrl, fetchImpl?): Promise<{
language: string | undefined;
languages?: string[];
login: {
appLogin?: "app" | "browser" | "embedded";
guestAccess: boolean;
identityProviders: string[];
};
maintenance?: string;
name: string;
supportPage?: string;
url: string;
}>;

Defined in: areas/site/info.ts:29

What the site tells anyone about itself, through Moodle's AJAX entry point for services that need no login (service-nologin.php): readable before logging in, without the browser. Moodle shows its version only to administrators, so it isn't here.

Parameters​

ParameterTypeDefault value
siteUrlstringundefined
fetchImpl(input, init?) => Promise<Response>fetch

Returns​

Promise<{ language: string | undefined; languages?: string[]; login: { appLogin?: "app" | "browser" | "embedded"; guestAccess: boolean; identityProviders: string[]; }; maintenance?: string; name: string; supportPage?: string; url: string; }>