Reference

Guide

$site->urlForLanguage()

Returns the translated url

$site->urlForLanguage(string $languageCode = null, array $options = null): string

Parameters

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

Return type

string

Source code

kirby/src/Cms/Site.php#L633