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

NameType(s)Description
$selectorsSelectors string array

Selectors object, selector string or selector array

$options (optional)array

Return value

array

of page parent IDs


PageFinder methods and properties

API reference based on ProcessWire core version 3.0.252