$language->indexOf()
Returns the position / index in the collection
$language->indexOf(Kirby\Cms\Languages|null $collection = null): int|false
Parameters
| Name | Type | Default |
|---|---|---|
| $collection | Kirby\Cms\Languagesornull |
null
|
Return types
intorfalse
This method modifies the existing $language object it is applied to and returns it again.