Creates a translation job item.
$plugin: The plugin name.
$item_type: The source item type.
$item_id: The source item id.
$values: (Optional) An array of additional entity values to be set.
\Drupal\tmgmt\JobItemInterface The created, not yet saved, job item entity.
function tmgmt_job_item_create($plugin, $item_type, $item_id, array $values = array()) {
return JobItem::create(array_merge($values, array(
'plugin' => $plugin,
'item_type' => $item_type,
'item_id' => $item_id,
)));
}