Skip to content

Kirby 6.0.1

$hasSiblings->isNth()

Checks if the item is at a certain position

$hasSiblings->isNth(int $n, Collection|null $collection = null): bool

Parameters

Name Type Default
$nrequired int no default value
$collection Kirby\Cms\Collectionornull null

Return type

bool

Parent class

Kirby\Cms\HasSiblings