❌ Kirby 2 no longer actively supported. Migrate to a current version and
upgrade your v2 license now
.
$media->extension()
Returns the file extension
return
(string)
Example
<?= $media->extension(); ?>
↑
Toolkit API overview
←
$media->exists()
→
$media->filename()
↓
Back to Toolkit API section
Top