Return all sibling pages before this one, optionally matching a selector
Usage
// basic usage
$page = $page->prevAll();
// usage with all arguments
$page = $page->prevAll($selector = '', $getQty = false);
Arguments
Name | Type(s) | Description |
---|---|---|
selector (optional) | string, array, bool | Optional selector. When specified, will filter the found siblings. |
getQty (optional) | bool, PageArray | Return a count instead of PageArray? (boolean)
|
Return value
API reference based on ProcessWire core version 3.0.236