$fileactions->replace()
Replaces the file. The source must be an absolute path to a file or a Url.
Parameters
Name | Type | Default | Description |
---|---|---|---|
$source * | string |
– | |
$move | bool |
false |
If set to true , the source will be deleted |
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
Type | Description |
---|---|
Kirby\Exception\LogicException |
Parent class
Kirby\Cms\FileActions