Skip to content

Kirby 5.6.1

$languages->findByPath()

Returns the language whose URL path prefix matches the given path

$languages->findByPath(string|null $path): Kirby\Cms\Language|null

Parameters

Name Type Default
$path stringornull no default value

Return types

Kirby\Cms\Languageornull

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

Parent class

Kirby\Cms\Languages