Reference

Guide

$page->urlForLanguage()

Builds the Url for a specific language

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

Parameters

Name Type Default Description
$language string|null null
$options array null

Return type

string

Source code

kirby/src/Cms/Page.php#L1574