Kirby 2 Docs
❌ Kirby 2 has reached its end of life. Migrate to a current version and
upgrade your v2 license now
.
$media->toJson($callback = null)
Converts the entire media object into a JSON string
$callback
(callable)
Mapping callback
return
(string)
↑
Toolkit API overview
←
$media->toArray($callback = null)
→
$media->touch()
↓
Back to Toolkit API section
Top