public function getPageChildren($page = null, $ofType = null, array $options = [])
 {
     if (null === $page) {
         $page = $this->domainConfiguration->getRootNode();
     }
     return $this->siteTree->getChildren($page, $options + ['depth' => 0, 'refName' => $this->getRefNames($ofType)]);
 }
 private function getPrevNext(HasNodeInterface $page, $loop)
 {
     $class = ClassLookup::getClass($page);
     $id = $page->getId();
     if (false === isset($this->nav[$class][$id])) {
         $parent = $this->contentCategory->getParentCategory($page, true);
         $siblings = $this->siteTree->getChildren($parent, ['refName' => $class, 'depth' => 1]) ?: new UnknownNodeBranch();
         $this->nav[$class][$id] = $this->calculatePrevNext($siblings, $page, $loop);
     }
     return array_values($this->nav[$class][$id]);
 }