Uses a content type identifier + a hash of fields values
to create and publish a draft below the root location.
public createDraft ( string $contentTypeIdentifier, array $fields ) : eZ\Publish\API\Repository\Values\Content\Content | ||
$contentTypeIdentifier | string | |
$fields | array | Hash of field def identifier => field value |
return | eZ\Publish\API\Repository\Values\Content\Content | the created draft. |