src/Kunstmaan/AdminBundle/Helper/Menu/MenuBuilder.php
public function getLowestTopChild()
    {
        $current = $this->getCurrent();
        while (!is_null($current)) {
            if ($current instanceof TopMenuItem) {
                return $current;
            }
            $current = $current->getParent();
        }

        return null;
    }
public function getLowestTopChild()
    {
        $current = $this->getCurrent();
        while (!is_null($current)) {
            if ($current instanceof TopMenuItem) {
                return $current;
            }
            $current = $current->getParent();
        }

        return null;
    }
public function getLowestTopChild ( ) { $ current = $ this -> getCurrent ( ) ; while ( ! is_null ( $ current ) ) { if ( $ current instanceof TopMenuItem ) { return $ current ; } $ current = $ current -> getParent ( ) ; } return null ; }
Get top parent menu of current menu item

@return TopMenuItem|null
Get top parent menu of current menu item