public function call(Node $current) { $menuItem = $current->getMenuItem(); $accept = true; if (empty($this->showHidden)) { $accept &= empty($menuItem->hidden); } $accept &= in_array($menuItem->getParentRoute(), $this->routeLine); return $accept; }
protected function getPageTree() { $menu = $this->getService('Menu\\Page\\Builder')->buildCollection(); return Page\Node::buildTree($menu); }