$site->hasChildren()

Checks if there are any children placed directly in /content

  • return (boolean)

Example

<?php if($site->hasChildren()): ?>
There are children in /content.
<?php endif ?>

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