public function JobInterface::addItem in Translation Management Tool 8
Adds an item to the translation job.
Parameters
string $plugin: The plugin name.
string $item_type: The source item type.
string $item_id: The source item id.
Return value
\Drupal\tmgmt\JobItemInterface The job item that was added to the job or FALSE if it couldn't be saved.
Throws
\Drupal\tmgmt\TMGMTException On zero item word count.
1 method overrides JobInterface::addItem()
- Job::addItem in src/
Entity/ Job.php - Adds an item to the translation job.
File
- src/
JobInterface.php, line 183
Class
- JobInterface
- Interface for tmgmt_job entity.
Namespace
Drupal\tmgmtCode
public function addItem($plugin, $item_type, $item_id);