Skip to content

Kirby 6.0.0

$site->hasVideos()

Checks if the Files collection has any videos

$site->hasVideos(): bool

Return type

bool

Parent class

Kirby\Cms\Site

Examples

<?php if ($site->hasVideos()): ?>
The /content folder contains video files.
<?php endif ?>