Usage
// basic usage
$string = $pagesNames->uniqueRandomPageName();
// usage with all arguments
$string = $pagesNames->uniqueRandomPageName(array $options = []);
Arguments
Name | Type(s) | Description |
---|
$options (optional) | array | page (Page): If name is or should be assigned to a Page, specify it here. Default:nulllength (int): Required/fixed length, or omit for random length Default:0min (int): Minimum required length, if fixed length not specified Default:6max (int): Maximum allowed length, if fixed length not specified Default:min*2alpha (bool): Include alpha a-z letters? Default:truenumeric (bool): Include numeric digits 0-9? Default:trueconfirm (bool): Confirm that name is globally unique? Default:trueparent (Page|int): If specified, name must only be unique for this parent Page or ID Default:0prefix (string): Prepend this prefix to page name Default:''suffix (string): Append this suffix to page name Default:''
|
Return value
PagesNames methods and properties
API reference based on ProcessWire core version 3.0.251