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

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

        return new Values\ContentTypeGroupRefList(
            $contentType,
            $contentType->getContentTypeGroups()
        );
    }
public function loadGroupsOfContentType ( $ contentTypeId ) { $ contentType = $ this -> contentTypeService -> loadContentType ( $ contentTypeId , Language :: ALL ) ; return new Values \ ContentTypeGroupRefList ( $ contentType , $ contentType -> getContentTypeGroups ( ) ) ; }
Returns the content type groups the content type belongs to.

@param $contentTypeId

@return \eZ\Publish\Core\REST\Server\Values\ContentTypeGroupRefList
Returns the content type groups the content type belongs to .