Skip to content

Kirby 5.1.2

$pageSiblings->hasPrevListed()

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

$pageSiblings->hasPrevListed(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