$file->replace()
Replaces the file. The source must be an absolute path to a file or a Url.
Parameters
Name | Type | Default |
---|---|---|
$source * | string |
– |
Return type
This method does not modify the existing $file
object but returns a new object with the changes applied. Learn more →
Exceptions
Type | Description |
---|---|
Kirby\Exception\LogicException |