Count and return how many pages will match the given selector string
Usage
// basic usage
$int = $pagesLoader->count();
// usage with all arguments
$int = $pagesLoader->count($selector = '', $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
selector (optional) | string, array, Selectors | Specify selector, or omit to retrieve a site-wide count. |
options (optional) | array, string | See $options in Pages::find |
Return value
int
PagesLoader methods and properties
API reference based on ProcessWire core version 3.0.236