Reference

Guide

$page->urlForLanguage()

Builds the Url for a specific language

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

Parameters

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

Return type

string

Source code

kirby/src/Cms/Page.php#L1518