Skip to content

Kirby 5.1.2

$pageSiblings->hasNextListed()

Checks if there's a next listed page in the siblings collection

$pageSiblings->hasNextListed(Kirby\Cms\Pages|null $collection = null): bool

Parameters

Name Type Default
$collection Kirby\Cms\Pagesornull null

Return type

bool

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

Parent class

Kirby\Cms\PageSiblings