Skip to content

Kirby 4.5.0

Files::factory()

Creates a files collection from an array of props

Files::factory(array $files, Kirby\Cms\Page|Kirby\Cms\Site|Kirby\Cms\User $parent): Kirby\Cms\Files

Parameters

Name Type Default
$files * array
$parent * Kirby\Cms\Page|Kirby\Cms\Site|Kirby\Cms\User

Return type

Kirby\Cms\Files

Parent class

Kirby\Cms\Files