Skip to content

Kirby 5.3.0

$lazyCollection->data()

Getter and setter for the data

$lazyCollection->data(array|null $data = null): array|Kirby\Cms\LazyCollection

Parameters

Name Type Default
$data arrayornull null

Return types

arrayorKirby\Cms\LazyCollection

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

Parent class

Kirby\Cms\LazyCollection inherited from Kirby\Toolkit\Collection