Skip to content

Kirby 4.5.0

$files->data()

Getter and setter for the data

$files->data(?array $data = null): array|Kirby\Cms\Files

Parameters

Name Type Default
$data array|null null

Return type

array|Kirby\Cms\Files

This method modifies the existing $files object it is applied to and returns it again.

Parent class

Kirby\Cms\Files inherited from Kirby\Toolkit\Collection