PagePathHistory::addPathHistory()

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

NameType(s)Description
$pagePage
$pathstring
$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.255