Skip to content

Kirby 5.0.4

$language->router()

Returns the LanguageRouter instance which is used to handle language specific routes.

$language->router(): Kirby\Cms\LanguageRouter

Return type

Kirby\Cms\LanguageRouter

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

Parent class

Kirby\Cms\Language