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
| Name | Type(s) | Description |
|---|---|---|
$selectors | Selectors string array | Selectors object, selector string or selector array |
$options (optional) | array |
Return value
arrayof page IDs
PageFinder methods and properties
API reference based on ProcessWire core version 3.0.253