public function moveUpAction(Request $request)
    {
        $context = $this->loadContext($request);

        $resource = $context->getResource();

        $this->isGranted('EDIT', $resource);

        $this->move($resource, -1);

        return $this->redirectToReferer($this->generateUrl(
            $this->config->getRoute('list'),
            $context->getIdentifiers()
        ));
    }
public function moveUpAction(Request $request)
    {
        $context = $this->loadContext($request);

        $resource = $context->getResource();

        $this->isGranted('EDIT', $resource);

        $this->move($resource, -1);

        return $this->redirectToReferer($this->generateUrl(
            $this->config->getRoute('list'),
            $context->getIdentifiers()
        ));
    }
public function moveUpAction ( Request $ request ) { $ context = $ this -> loadContext ( $ request ) ; $ resource = $ context -> getResource ( ) ; $ this -> isGranted ( 'EDIT' , $ resource ) ; $ this -> move ( $ resource , - 1 ) ; return $ this -> redirectToReferer ( $ this -> generateUrl ( $ this -> config -> getRoute ( 'list' ) , $ context -> getIdentifiers ( ) ) ) ; }
Move up the resource.

@param Request $request
@return \Symfony\Component\HttpFoundation\Response
Move up the resource .