$page->isParentOf($child)

Checks if the page is the parent of the given page

  • $child (Page | string)
    A page URI or page object.
  • return (boolean)