Skip to content

Kirby 3.6.6

$fileactions->changeName()

Renames the file without touching the extension The store is used to actually execute this.

$fileactions->changeName(string $name, bool $sanitize = true): Kirby\Cms\FileActions

Parameters

Name Type Default
$name * string
$sanitize bool true

Return type

Kirby\Cms\FileActions

This method does not modify the existing $fileactions object but returns a new object with the changes applied. Learn more →

Exceptions

Parent class

Kirby\Cms\FileActions