PagesNames::defaultPageNameFormat()

Get the name format string that should be used for given $page if no name was assigned

Usage

// basic usage
$string = $pagesNames->defaultPageNameFormat(Page $page);

// usage with all arguments
$string = $pagesNames->defaultPageNameFormat(Page $page, array $options = []);

Arguments

NameType(s)Description
$pagePage
$options (optional)array
  • fallbackFormat (string): Fallback format if another cannot be determined Default:'untitled-time'
  • parent (Page|null): Optional parent page to use instead of $page->parent Default:null

Return value

string


PagesNames methods and properties

API reference based on ProcessWire core version 3.0.251