$user->createFile()
Creates a new file
$user->createFile(array $props, bool $move = false): Kirby\Cms\File
Parameters
Name | Type | Default | Description |
---|---|---|---|
$propsrequired | array |
no default value | |
$move | bool |
false
|
If set to true , the source will be deleted |
Return type
This method modifies the existing $user
object it is applied to and returns it again.