Skip to content

Kirby 4.1.2

$site->hasVideos()

Checks if the Files collection has any videos

$site->hasVideos(): bool

Return type

bool

Parent class

Kirby\Cms\Site

Example

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