PagesNames::names method
Increment the suffix of a page name, or add one if not present
Usage
// basic usage
$string = $pages->names->incrementName(string $name);
// usage with all arguments
$string = $pages->names->incrementName(string $name, $num = null);
Arguments
Name | Type(s) | Description |
---|---|---|
$name | string | |
$num (optional) | int null | Number to use, or omit to determine and increment automatically |
Return value
string
$pages->names methods and properties
API reference based on ProcessWire core version 3.0.252