public function listContentTypesForGroup($contentTypeGroupId, Request $request)
    {
        $contentTypes = $this->contentTypeService->loadContentTypes(
            $this->contentTypeService->loadContentTypeGroup($contentTypeGroupId, Language::ALL),
            Language::ALL
        );

        if ($this->getMediaType($request) === 'application/vnd.ez.api.contenttypelist') {
            return new Values\ContentTypeList($contentTypes, $request->getPathInfo());
        }

        return new Values\ContentTypeInfoList($contentTypes, $request->getPathInfo());
    }
public function listContentTypesForGroup($contentTypeGroupId, Request $request)
    {
        $contentTypes = $this->contentTypeService->loadContentTypes(
            $this->contentTypeService->loadContentTypeGroup($contentTypeGroupId, Language::ALL),
            Language::ALL
        );

        if ($this->getMediaType($request) === 'application/vnd.ez.api.contenttypelist') {
            return new Values\ContentTypeList($contentTypes, $request->getPathInfo());
        }

        return new Values\ContentTypeInfoList($contentTypes, $request->getPathInfo());
    }
public function listContentTypesForGroup ( $ contentTypeGroupId , Request $ request ) { $ contentTypes = $ this -> contentTypeService -> loadContentTypes ( $ this -> contentTypeService -> loadContentTypeGroup ( $ contentTypeGroupId , Language :: ALL ) , Language :: ALL ) ; if ( $ this -> getMediaType ( $ request ) === 'application/vnd.ez.api.contenttypelist' ) { return new Values \ ContentTypeList ( $ contentTypes , $ request -> getPathInfo ( ) ) ; } return new Values \ ContentTypeInfoList ( $ contentTypes , $ request -> getPathInfo ( ) ) ; }
Returns a list of content types of the group.

@param string $contentTypeGroupId

@return \eZ\Publish\Core\REST\Server\Values\ContentTypeList|\eZ\Publish\Core\REST\Server\Values\ContentTypeInfoList
Returns a list of content types of the group .