$pages->findOpen()

Finds the open $page object in the collection

  • return ($page)

Example

<?= $page->children()->findOpen()->title() ?>