Skip to content

Kirby 5.1.2

$item->siblings()

Returns all sibling elements

$item->siblings(bool $self = true): Kirby\Cms\Items

Parameters

Name Type Default
$self bool true

Return type

Kirby\Cms\Items

This method modifies the existing $item object it is applied to and returns it again.

Parent class

Kirby\Cms\Item