PageTraversal::nextUntil()
Return all sibling pages after this one until matching the one specified
Usage
// basic usage
$items = $pageTraversal->nextUntil(Page $page);
// usage with all arguments
$items = $pageTraversal->nextUntil(Page $page, $selector = '', $filter = '', array $options = []);Arguments
| Name | Type(s) | Description |
|---|---|---|
$page | Page | |
$selector (optional) | string Page array Selectors | May either be a selector or Page to stop at. Results will not include this. |
$filter (optional) | string array | Optional selector to filter matched pages by |
$options (optional) | array | Options to pass to the _next() method |
Return value
PageTraversal methods and properties
API reference based on ProcessWire core version 3.0.255