$site->hasVideos()
Checks if the Files collection has any videos
$site->hasVideos(): bool
Return type
bool
This method modifies the existing $site
object it is applied to and returns it again.
Parent class
Examples
<?php if ($site->hasVideos()): ?>
The /content folder contains video files.
<?php endif ?>