$site->hasCode()

Checks if there are any code files placed directly in /content

  • return (boolean)

Example

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

Is something missing or incorrect? Edit this page on Github…