public function loadContentTypeDraft($contentTypeId)
    {
        $contentTypeDraft = $this->contentTypeService->loadContentTypeDraft($contentTypeId);

        return new Values\RestContentType(
            $contentTypeDraft,
            $contentTypeDraft->getFieldDefinitions()
        );
    }
public function loadContentTypeDraft($contentTypeId)
    {
        $contentTypeDraft = $this->contentTypeService->loadContentTypeDraft($contentTypeId);

        return new Values\RestContentType(
            $contentTypeDraft,
            $contentTypeDraft->getFieldDefinitions()
        );
    }
public function loadContentTypeDraft ( $ contentTypeId ) { $ contentTypeDraft = $ this -> contentTypeService -> loadContentTypeDraft ( $ contentTypeId ) ; return new Values \ RestContentType ( $ contentTypeDraft , $ contentTypeDraft -> getFieldDefinitions ( ) ) ; }
Loads a content type draft.

@param $contentTypeId

@return \eZ\Publish\Core\REST\Server\Values\RestContentType
Loads a content type draft .