PageFinder::findParentIDs()
Same as findIDs() but returns the parent IDs of the pages that matched
Usage
// basic usage
$array = $pageFinder->findParentIDs($selectors);
// usage with all arguments
$array = $pageFinder->findParentIDs($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 parent IDs
PageFinder methods and properties
API reference based on ProcessWire core version 3.0.253