$pages->findBy($key, $value)

Finds a single $page object in the collection by $key and $value

  • $key (string)
  • $value (mixed)
  • return ($page)

Example

<?php echo $page->children()->findBy('uid', 'some-page')->title() ?>