❌ Kirby 2 no longer actively supported. Migrate to a current version and
upgrade your v2 license now
.
$collection->toArray($callback = null)
Converts the current object into an array
$callback
(callable)
Mapping callback
return
(array)
↑
Toolkit API overview
←
$collection->sortBy($field, $direction='asc')
→
$collection->toJson()
↓
Back to Toolkit API section
Top