public deleteContentType ( $contentTypeId ) : eZ\Publish\Core\REST\Server\Values\NoContent | ||
$contentTypeId | ||
return | eZ\Publish\Core\REST\Server\Values\NoContent |
public function deleteContentType($contentTypeId)
{
$contentType = $this->contentTypeService->loadContentType($contentTypeId);
try {
$this->contentTypeService->deleteContentType($contentType);
} catch (BadStateException $e) {
throw new ForbiddenException($e->getMessage());
}
return new Values\NoContent();
}