Controller/MenuController.php
public function downAction(Request $request)
    {
        /** @var MenuRepository $repo */
        $repo = $this->get('vince_cms.repository.menu');
        /** @var Menu $menu */
        $menu = $repo->find($request->get('id'));
        if ($menu->getParent()) {
            $repo->moveDown($menu);
        }

        return $this->redirect($this->generateUrl('admin_my_cms_menu_list'));
    }
public function downAction(Request $request)
    {
        /** @var MenuRepository $repo */
        $repo = $this->get('vince_cms.repository.menu');
        /** @var Menu $menu */
        $menu = $repo->find($request->get('id'));
        if ($menu->getParent()) {
            $repo->moveDown($menu);
        }

        return $this->redirect($this->generateUrl('admin_my_cms_menu_list'));
    }
public function downAction ( Request $ request ) { /** @var MenuRepository $repo */ $ repo = $ this -> get ( 'vince_cms.repository.menu' ) ; /** @var Menu $menu */ $ menu = $ repo -> find ( $ request -> get ( 'id' ) ) ; if ( $ menu -> getParent ( ) ) { $ repo -> moveDown ( $ menu ) ; } return $ this -> redirect ( $ this -> generateUrl ( 'admin_my_cms_menu_list' ) ) ; }
Move menu down

@author Vincent Chalamon <vincentchalamon@gmail.com>

@param Request $request

@return \Symfony\Component\HttpFoundation\RedirectResponse
Move menu down