Return all possible parent pages for this template
Usage
// basic usage
$items = $template->getParentPages();
// usage with all arguments
$items = $template->getParentPages(bool $checkAccess = false);
Arguments
Name | Type(s) | Description |
---|---|---|
checkAccess (optional) | bool | Specify true to exclude parents that user doesn't have access to add children to (default=false) |
Return value
Template methods and properties
API reference based on ProcessWire core version 3.0.236