$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\Languages ornull |
null
|
Return types
int
orfalse
This method modifies the existing $language
object it is applied to and returns it again.