$site->hasDocuments()
Checks if the Files collection has any document files
$site->hasDocuments(): bool
Return type
bool
Parent class
Example
<?php if($site->hasDocuments()): ?>
The /content folder contains documents.
<?php endif ?>
Checks if the Files collection has any document files
$site->hasDocuments(): bool
bool
<?php if($site->hasDocuments()): ?>
The /content folder contains documents.
<?php endif ?>