$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.