PagesNames::names method
Assign a name to given Page (if it doesn’t already have one)
Usage
// basic usage
$string = $pages->names->setupNewPageName(Page $page);
// usage with all arguments
$string = $pages->names->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
stringReturns page name that was assigned
$pages->names methods and properties
API reference based on ProcessWire core version 3.0.252