/** * Get top level NavigationInterface instance * * @return NavigationInterface|null */ public function getNavigation() { if ($this->_parentContainer instanceof NavigationInterface) { return $this->_parentContainer; } elseif ($this->_parentContainer instanceof Item) { return $this->_parentContainer->getNavigation(); } return null; }