src/Sulu/Bundle/AdminBundle/Navigation/NavigationItem.php
public function copyChildless()
    {
        $new = $this->copyWithName();
        $new->setAction($this->getAction());
        $new->setMainRoute($this->getMainRoute());
        $new->setChildRoutes($this->getChildRoutes());
        $new->setEvent($this->getEvent());
        $new->setEventArguments($this->getEventArguments());
        $new->setIcon($this->getIcon());
        $new->setHeaderIcon($this->getHeaderIcon());
        $new->setHeaderTitle($this->getHeaderTitle());
        $new->setId($this->getId());
        $new->setHasSettings($this->getHasSettings());
        $new->setPosition($this->getPosition());
        $new->setLabel($this->getLabel());

        return $new;
    }
public function copyChildless()
    {
        $new = $this->copyWithName();
        $new->setAction($this->getAction());
        $new->setMainRoute($this->getMainRoute());
        $new->setChildRoutes($this->getChildRoutes());
        $new->setEvent($this->getEvent());
        $new->setEventArguments($this->getEventArguments());
        $new->setIcon($this->getIcon());
        $new->setHeaderIcon($this->getHeaderIcon());
        $new->setHeaderTitle($this->getHeaderTitle());
        $new->setId($this->getId());
        $new->setHasSettings($this->getHasSettings());
        $new->setPosition($this->getPosition());
        $new->setLabel($this->getLabel());

        return $new;
    }
public function copyChildless ( ) { $ new = $ this -> copyWithName ( ) ; $ new -> setAction ( $ this -> getAction ( ) ) ; $ new -> setMainRoute ( $ this -> getMainRoute ( ) ) ; $ new -> setChildRoutes ( $ this -> getChildRoutes ( ) ) ; $ new -> setEvent ( $ this -> getEvent ( ) ) ; $ new -> setEventArguments ( $ this -> getEventArguments ( ) ) ; $ new -> setIcon ( $ this -> getIcon ( ) ) ; $ new -> setHeaderIcon ( $ this -> getHeaderIcon ( ) ) ; $ new -> setHeaderTitle ( $ this -> getHeaderTitle ( ) ) ; $ new -> setId ( $ this -> getId ( ) ) ; $ new -> setHasSettings ( $ this -> getHasSettings ( ) ) ; $ new -> setPosition ( $ this -> getPosition ( ) ) ; $ new -> setLabel ( $ this -> getLabel ( ) ) ; return $ new ; }
Returns a copy of this navigation item without its children.

@return NavigationItem
Returns a copy of this navigation item without its children .