Add a history path for a page
Usage
// basic usage
$bool = $pagePathHistory->addPathHistory(Page $page, string $path);
// usage with all arguments
$bool = $pagePathHistory->addPathHistory(Page $page, string $path, $language = null);
Arguments
Name | Type(s) | Description |
---|---|---|
page | Page | |
path | string | |
language (optional) | null, Language |
Return value
bool
True if path was added, or false if it likely overlaps with an existing path
PagePathHistory methods and properties
API reference based on ProcessWire core version 3.0.236