Skip to content

Kirby 6.0.0

$areas->data()

Getter and setter for the data

$areas->data(array|null $data = null): array|Areas

Parameters

Name Type Default
$data arrayornull null

Return types

arrayorKirby\Panel\Areas

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

Parent class

Kirby\Panel\Areas inherited from Kirby\Toolkit\Collection