Jarves\Controller\NestedObjectCrudController::moveItemAction PHP Метод

moveItemAction() публичный Метод

public moveItemAction ( Request $request, FOS\RestBundle\Request\ParamFetcher $paramFetcher ) : boolean
$request Symfony\Component\HttpFoundation\Request
$paramFetcher FOS\RestBundle\Request\ParamFetcher
Результат boolean
    public function moveItemAction(Request $request, ParamFetcher $paramFetcher)
    {
        $primaryKey = $this->extractPrimaryKey($request);
        $target = $paramFetcher->get('target');
        $position = $paramFetcher->get('position') ?: 'first';
        $targetObjectKey = $paramFetcher->get('targetObjectKey');
        //        $overwrite = $paramFetcher->get('overwrite');
        return $this->moveItem($primaryKey, $target, $position, $targetObjectKey);
    }