public function Job::addExistingItem in Translation Management Tool 8
Add a givenJobItem to this job.
Parameters
\Drupal\tmgmt\JobItemInterface $item: The job item to add.
Overrides JobInterface::addExistingItem
File
- src/
Entity/ Job.php, line 364
Class
- Job
- Entity class for the tmgmt_job entity.
Namespace
Drupal\tmgmt\EntityCode
public function addExistingItem(JobItemInterface $item) {
$item->tjid = $this
->id();
$item
->save();
}