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