PageTraversal::nextAllSiblings()

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

Usage

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

// usage with all arguments
$items = $pageTraversal->nextAllSiblings(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

PageArray

Returns all matching pages after this one.


PageTraversal methods and properties

API reference based on ProcessWire core version 3.0.255