PageTraversal::prevAllSiblings()

Return all sibling pages before this one, optionally matching a selector

Usage

// basic usage
$items = $pageTraversal->prevAllSiblings(Page $page);

// usage with all arguments
$items = $pageTraversal->prevAllSiblings(Page $page, $selector = '', $siblings = null);

Arguments

NameType(s)Description
$pagePage
$selector (optional)string array

Optional selector. When specified, will filter the found siblings.

$siblings (optional)PageArray null

Optional siblings to use instead of the default.

Return value


PageTraversal methods and properties

API reference based on ProcessWire core version 3.0.255