Skip to content

Kirby 4.4.1

$site->hasFiles()

Checks if the Files collection has any files

$site->hasFiles(): bool

Return type

bool

Parent class

Kirby\Cms\Site

Example

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