class WebManifest

The forum's web app manifest, which Android and Chrome read for the name and icons of a shortcut added to the home screen. It opens the forum as an app, in a window of its own with a splash screen, unless an admin turns that off, and then in the browser.

Methods

__construct( SettingsRepositoryInterface $settings, Branding $branding, UrlGenerator $url, Container $container, ShortName $shortName, SplashScreen $splashScreen)

No description

bool
isLinked()

Whether pages link the manifest: once there is an app icon for it to list, or an extension has changed it.

bool
opensAsApp()

No description

array
build()

No description

bool
isStartPage(string $path)

Whether the path is a page the app can open to: a forum route that takes no parameters, as for the home page setting.

string
startPage()

The page the app opens to, as a path after the forum's address. A page whose extension was disabled falls back to the forum's address.

array
icons()

No description

Details

__construct( SettingsRepositoryInterface $settings, Branding $branding, UrlGenerator $url, Container $container, ShortName $shortName, SplashScreen $splashScreen)

Parameters

SettingsRepositoryInterface $settings
Branding $branding
UrlGenerator $url
Container $container
ShortName $shortName
SplashScreen $splashScreen

bool isLinked()

Whether pages link the manifest: once there is an app icon for it to list, or an extension has changed it.

Return Value

bool

bool opensAsApp()

Return Value

bool

array build()

Return Value

array

bool isStartPage(string $path)

Whether the path is a page the app can open to: a forum route that takes no parameters, as for the home page setting.

Parameters

string $path

Return Value

bool

protected string startPage()

The page the app opens to, as a path after the forum's address. A page whose extension was disabled falls back to the forum's address.

Return Value

string

protected array icons()

Return Value

array