PagePaths::getPath()
Given a page ID, return the page path, NULL if not found, or boolean false if cannot be determined.
Usage
// basic usage
$string = $pagePaths->getPath(int $pageId);
// usage with all arguments
$string = $pagePaths->getPath(int $pageId, int $languageId = 0);Arguments
| Name | Type(s) | Description |
|---|---|---|
$pageId | int | Page ID |
$languageId (optional) | int | Optionally specify language ID for path or 0 for default language |
Return value
string nullReturns path or null if not found
PagePaths methods and properties
API reference based on ProcessWire core version 3.0.252