$assets->data()
Getter and setter for the data
$assets->data(array|null $data = null): array|Kirby\Plugin\Assets
Parameters
Name | Type | Default |
---|---|---|
$data | array ornull |
null
|
Return types
array
orKirby\Plugin\Assets
This method modifies the existing $assets
object it is applied to and returns it again.
Parent class
Kirby\Plugin\Assets
inherited from Kirby\Toolkit\Collection