public function loadContentType($contentTypeId)
    {
        $contentType = $this->contentTypeService->loadContentType($contentTypeId, Language::ALL);

        return new Values\RestContentType(
            $contentType,
            $contentType->getFieldDefinitions()
        );
    }
public function loadContentType($contentTypeId)
    {
        $contentType = $this->contentTypeService->loadContentType($contentTypeId, Language::ALL);

        return new Values\RestContentType(
            $contentType,
            $contentType->getFieldDefinitions()
        );
    }
public function loadContentType ( $ contentTypeId ) { $ contentType = $ this -> contentTypeService -> loadContentType ( $ contentTypeId , Language :: ALL ) ; return new Values \ RestContentType ( $ contentType , $ contentType -> getFieldDefinitions ( ) ) ; }
Loads a content type.

@param $contentTypeId

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