function tmgmt_job_item_create in Translation Management Tool 8
Same name and namespace in other branches
- 7 tmgmt.module \tmgmt_job_item_create()
Creates a translation job item.
Parameters
$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.
Return value
\Drupal\tmgmt\JobItemInterface The created, not yet saved, job item entity.
Related topics
34 calls to tmgmt_job_item_create()
- ConfigSourceUnitTest::testAccountSettings in sources/
tmgmt_config/ tests/ src/ Kernel/ ConfigSourceUnitTest.php - Tests the user config entity.
- ConfigSourceUnitTest::testNodeType in sources/
tmgmt_config/ tests/ src/ Kernel/ ConfigSourceUnitTest.php - Tests the node type config entity.
- ConfigSourceUnitTest::testSystemSite in sources/
tmgmt_config/ tests/ src/ Kernel/ ConfigSourceUnitTest.php - Tests the view of the system site.
- ConfigSourceUnitTest::testView in sources/
tmgmt_config/ tests/ src/ Kernel/ ConfigSourceUnitTest.php - Tests the view config entity
- ConfigSourceWebformTest::testWebForm in sources/
tmgmt_config/ tests/ src/ Kernel/ ConfigSourceWebformTest.php - Tests the webform config entity.
File
- ./
tmgmt.module, line 392 - Main module file for the Translation Management module.
Code
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,
)));
}