$pages->data()
Getter and setter for the data
$pages->data(array $data = null): array|Collection
Parameters
Name | Type | Default | Description |
---|---|---|---|
$data |
array |
null |
Return type
array
|Collection
Inherited from
Kirby\Toolkit\Collection