PageFinder::findIDs()

Same as find() but returns just a simple array of page IDs without any other info

Usage

// basic usage
$array = $pageFinder->findIDs($selectors);

// usage with all arguments
$array = $pageFinder->findIDs($selectors, array $options = []);

Arguments

NameType(s)Description
$selectorsSelectors string array

Selectors object, selector string or selector array

$options (optional)array

Return value

array

of page IDs


PageFinder methods and properties

API reference based on ProcessWire core version 3.0.252