Reference

Guide

$file->changeName()

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

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

Parameters

Name Type Default Description
$name string
$sanitize bool true

Return type

Kirby\Cms\File

Details

Source code

kirby/src/Cms/FileActions.php#L30