Find template ID for each page — returns array of template IDs indexed by page ID
Available since version 3.0.152.
Usage
// basic usage
$array = $pageFinder->findTemplateIDs($selectors);
// usage with all arguments
$array = $pageFinder->findTemplateIDs($selectors, array $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
selectors | Selectors, string, array | Selectors object, selector string or selector array |
options (optional) | array |
Return value
array
PageFinder methods and properties
API reference based on ProcessWire core version 3.0.236