eZ\Bundle\EzPublishCoreBundle\Features\Context\ContentTypeContext::removeContentType PHP Method

removeContentType() protected method

Remove the given 'ContentType' object.
protected removeContentType ( eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType )
$contentType eZ\Publish\API\Repository\Values\ContentType\ContentType
    protected function removeContentType($contentType)
    {
        try {
            $this->contentTypeService->deleteContentType($contentType);
        } catch (ApiExceptions\NotFoundException $e) {
            // nothing to do
        }
    }