public function moveDownAction(Request $request)
    {
        $row = $this->findRowByRequest($request);

        try {
            $sibling = $this->getEditor()->getRowManager()->moveDown($row);
        } catch (EditorExceptionInterface $e) {
            return $this->handleException($e);
        }

        $container = $row->getContainer();

        $this->validate($container);
        $this->persist($container);

        $data = [
            'rows' => [
                $this->getViewBuilder()->buildRow($row),
                $this->getViewBuilder()->buildRow($sibling),
            ],
        ];

        return $this->buildResponse($data, self::SERIALIZE_LAYOUT);
    }
public function moveDownAction(Request $request)
    {
        $row = $this->findRowByRequest($request);

        try {
            $sibling = $this->getEditor()->getRowManager()->moveDown($row);
        } catch (EditorExceptionInterface $e) {
            return $this->handleException($e);
        }

        $container = $row->getContainer();

        $this->validate($container);
        $this->persist($container);

        $data = [
            'rows' => [
                $this->getViewBuilder()->buildRow($row),
                $this->getViewBuilder()->buildRow($sibling),
            ],
        ];

        return $this->buildResponse($data, self::SERIALIZE_LAYOUT);
    }
public function moveDownAction ( Request $ request ) { $ row = $ this -> findRowByRequest ( $ request ) ; try { $ sibling = $ this -> getEditor ( ) -> getRowManager ( ) -> moveDown ( $ row ) ; } catch ( EditorExceptionInterface $ e ) { return $ this -> handleException ( $ e ) ; } $ container = $ row -> getContainer ( ) ; $ this -> validate ( $ container ) ; $ this -> persist ( $ container ) ; $ data = [ 'rows' => [ $ this -> getViewBuilder ( ) -> buildRow ( $ row ) , $ this -> getViewBuilder ( ) -> buildRow ( $ sibling ) , ] , ] ; return $ this -> buildResponse ( $ data , self :: SERIALIZE_LAYOUT ) ; }
Move down the row.

@param Request $request

@return \Symfony\Component\HttpFoundation\Response
Move down the row .