PageTraversal::nextAll()

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

Usage

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

// usage with all arguments
$items = $pageTraversal->nextAll(Page $page, $selector = '', array $options = []);

Arguments

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

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

$options (optional)array

Options to pass to the _next() method

Return value

PageArray

Returns all matching pages after this one.


PageTraversal methods and properties

API reference based on ProcessWire core version 3.0.255