PageFinder::count()

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

NameType(s)Description
$selectorsSelectors 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.252