Get root segments
Available since version 3.0.186.
Usage
// basic usage
$array = $pagePaths->getRootSegments();
// usage with all arguments
$array = $pagePaths->getRootSegments(bool $rebuild = false);
Arguments
Name | Type(s) | Description |
---|---|---|
rebuild (optional) | bool |
Return value
array
PagePaths methods and properties
API reference based on ProcessWire core version 3.0.244