public function loadUserGroupByRemoteId(Request $request)
    {
        $contentInfo = $this->contentService->loadContentInfoByRemoteId($request->query->get('remoteId'));
        $userGroup = $this->userService->loadUserGroup($contentInfo->id, Language::ALL);
        $userGroupLocation = $this->locationService->loadLocation($contentInfo->mainLocationId);
        $contentType = $this->contentTypeService->loadContentType($contentInfo->contentTypeId);

        return new Values\RestUserGroup(
            $userGroup,
            $contentType,
            $contentInfo,
            $userGroupLocation,
            $this->contentService->loadRelations($userGroup->getVersionInfo())
        );
    }
public function loadUserGroupByRemoteId(Request $request)
    {
        $contentInfo = $this->contentService->loadContentInfoByRemoteId($request->query->get('remoteId'));
        $userGroup = $this->userService->loadUserGroup($contentInfo->id, Language::ALL);
        $userGroupLocation = $this->locationService->loadLocation($contentInfo->mainLocationId);
        $contentType = $this->contentTypeService->loadContentType($contentInfo->contentTypeId);

        return new Values\RestUserGroup(
            $userGroup,
            $contentType,
            $contentInfo,
            $userGroupLocation,
            $this->contentService->loadRelations($userGroup->getVersionInfo())
        );
    }
public function loadUserGroupByRemoteId ( Request $ request ) { $ contentInfo = $ this -> contentService -> loadContentInfoByRemoteId ( $ request -> query -> get ( 'remoteId' ) ) ; $ userGroup = $ this -> userService -> loadUserGroup ( $ contentInfo -> id , Language :: ALL ) ; $ userGroupLocation = $ this -> locationService -> loadLocation ( $ contentInfo -> mainLocationId ) ; $ contentType = $ this -> contentTypeService -> loadContentType ( $ contentInfo -> contentTypeId ) ; return new Values \ RestUserGroup ( $ userGroup , $ contentType , $ contentInfo , $ userGroupLocation , $ this -> contentService -> loadRelations ( $ userGroup -> getVersionInfo ( ) ) ) ; }
Loads a user group by its remote ID.

@return \eZ\Publish\Core\REST\Server\Values\RestUserGroup
Loads a user group by its remote ID .