Rename this file
Remember to follow this up with a $page->save()
for the page that the file lives on.
Usage
$string = $pagefile->rename(string $basename);
Arguments
Name | Type(s) | Description |
---|---|---|
basename | string | New name to use. Must be just the file basename (no path). |
Return value
string
bool
Returns new name (basename) on success, or boolean false if rename failed.
Pagefile methods and properties
API reference based on ProcessWire core version 3.0.236