public function redirectContent(Request $request)
    {
        if (!$request->query->has('remoteId')) {
            throw new BadRequestException("'remoteId' parameter is required.");
        }

        $contentInfo = $this->repository->getContentService()->loadContentInfoByRemoteId(
            $request->query->get('remoteId')
        );

        return new Values\TemporaryRedirect(
            $this->router->generate(
                'ezpublish_rest_loadContent',
                array(
                    'contentId' => $contentInfo->id,
                )
            )
        );
    }
public function redirectContent(Request $request)
    {
        if (!$request->query->has('remoteId')) {
            throw new BadRequestException("'remoteId' parameter is required.");
        }

        $contentInfo = $this->repository->getContentService()->loadContentInfoByRemoteId(
            $request->query->get('remoteId')
        );

        return new Values\TemporaryRedirect(
            $this->router->generate(
                'ezpublish_rest_loadContent',
                array(
                    'contentId' => $contentInfo->id,
                )
            )
        );
    }
public function redirectContent ( Request $ request ) { if ( ! $ request -> query -> has ( 'remoteId' ) ) { throw new BadRequestException ( "'remoteId' parameter is required." ) ; } $ contentInfo = $ this -> repository -> getContentService ( ) -> loadContentInfoByRemoteId ( $ request -> query -> get ( 'remoteId' ) ) ; return new Values \ TemporaryRedirect ( $ this -> router -> generate ( 'ezpublish_rest_loadContent' , array ( 'contentId' => $ contentInfo -> id , ) ) ) ; }
Loads a content info by remote ID.

@throws \eZ\Publish\Core\REST\Server\Exceptions\BadRequestException

@return \eZ\Publish\Core\REST\Server\Values\TemporaryRedirect
Loads a content info by remote ID .