Assign a name to given Page (if it doesn’t already have one)
Usage
// basic usage
$string = $pagesNames->setupNewPageName(Page $page);
// usage with all arguments
$string = $pagesNames->setupNewPageName(Page $page, string $format = '');
Arguments
Name | Type(s) | Description |
---|---|---|
page | Page | Page to setup a new name for |
format (optional) | string | Optional format string to use for name |
Return value
string
Returns page name that was assigned
PagesNames methods and properties
API reference based on ProcessWire core version 3.0.236