$pages->findOpen()

Finds the open $page object in the collection

  • return ($page)

Example

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

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