Skip to content

Kirby 3.8.4

$fileactions->replace()

Replaces the file. The source must be an absolute path to a file or a Url.

$fileactions->replace(string $source): Kirby\Cms\FileActions

Parameters

Name Type Default
$source * string

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