Skip to content

Kirby 5.0.4

$page->urlForLanguage()

Builds the Url for a specific language

$page->urlForLanguage(string|null $language = null, array|null $options = null): string

Parameters

Name Type Default
$language stringornull null
$options arrayornull null

Return type

string

This method modifies the existing $page object it is applied to and returns it again.

Parent class

Kirby\Cms\Page