Return a count of pages that match
Available since version 3.0.121.
Usage
// basic usage
$int = $pageFinder->count($selectors);
// usage with all arguments
$int = $pageFinder->count($selectors, array $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
selectors | Selectors, string, array | Selectors object, selector string or selector array |
options (optional) | array |
Return value
int
PageFinder methods and properties
API reference based on ProcessWire core version 3.0.236