Skip to content

Kirby 5.1.2

$pageSiblings->prevListed()

Returns the previous listed page

$pageSiblings->prevListed(Kirby\Cms\Pages|null $collection = null): Kirby\Cms\Page|null

Parameters

Name Type Default
$collection Kirby\Cms\Pagesornull null

Return types

Kirby\Cms\Pageornull

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

Parent class

Kirby\Cms\PageSiblings