Skip to content

Kirby 5.1.3

$hasSiblings->siblings()

Returns all sibling elements

$hasSiblings->siblings(bool $self = true): Kirby\Toolkit\Collection

Parameters

Name Type Default
$self bool true

Return type

Kirby\Toolkit\Collection

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

Parent class

Kirby\Cms\HasSiblings