$site->hasChildren()
Checks if the model has any published children
$site->hasChildren(): bool
Return type
bool
Parent class
Example
<?php if($site->hasChildren()): ?>
There are children in /content.
<?php endif ?>
Checks if the model has any published children
$site->hasChildren(): bool
bool
<?php if($site->hasChildren()): ?>
There are children in /content.
<?php endif ?>