Skip to content

Kirby 6.0.0

$translations->nth()

Returns the nth element from the collection

$translations->nth(int $n): Translation|null

Parameters

Name Type Default
$nrequired int no default value

Return types

Kirby\Cms\Translationornull

Parent class

Kirby\Cms\Translations inherited from Kirby\Toolkit\Collection