eZ\Publish\Core\REST\Client\ContentTypeService::deleteContentTypeGroup PHP Метод

deleteContentTypeGroup() публичный Метод

This method only deletes an content type group which has content types without any content instances
public deleteContentTypeGroup ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup $contentTypeGroup )
$contentTypeGroup eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup
    public function deleteContentTypeGroup(ContentTypeGroup $contentTypeGroup)
    {
        $response = $this->client->request('DELETE', $contentTypeGroup->id, new Message(array('Accept' => $this->outputVisitor->getMediaType('ContentTypeGroup'))));
        if (!empty($response->body)) {
            try {
                return $this->inputDispatcher->parse($response);
            } catch (ForbiddenException $e) {
                throw new InvalidArgumentException($e->getMessage(), $e->getCode());
            }
        }
    }