Reference

Guide

new File()

Creates a new File object

new File(array $props)

Parameters

Name Type Default Description
$props array

The $props parameter

Property Type Description
blueprint array Blueprint definition
content array Field values
filename string Field values
parent* Kirby\Cms\Model $site, $page or $user
root string
source* string
template string
translations array Language codes with subarrays of field values
url string

Source code

kirby/src/Cms/File.php#L141