$page->hasAudio()
Checks if the Files collection has any audio files
Return type
bool
Parent class
Example
What is an audio file?
Kirby considers the following file types as audio files:
- mp3
- m4a
- wav
- aif
- aiff
- midi
Checks if the Files collection has any audio files
bool
Kirby considers the following file types as audio files: