eZ\Publish\Core\SignalSlot\ContentTypeService::createContentTypeDraft PHP Method

createContentTypeDraft() public method

This is a complete copy of the content type which has the state STATUS_DRAFT.
public createContentTypeDraft ( eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft
$contentType eZ\Publish\API\Repository\Values\ContentType\ContentType
return eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft
    public function createContentTypeDraft(ContentType $contentType)
    {
        $returnValue = $this->service->createContentTypeDraft($contentType);
        $this->signalDispatcher->emit(new CreateContentTypeDraftSignal(array('contentTypeId' => $contentType->id)));
        return $returnValue;
    }