public function LingotekContentTranslationServiceInterface::setJobId in Lingotek Translation 3.5.x
Same name and namespace in other branches
- 8.2 src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setJobId()
- 4.0.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setJobId()
- 3.0.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setJobId()
- 3.1.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setJobId()
- 3.2.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setJobId()
- 3.3.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setJobId()
- 3.4.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setJobId()
- 3.6.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setJobId()
- 3.7.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setJobId()
- 3.8.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setJobId()
Sets the job ID of a given entity.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: The entity we want to save a job id for.
string $job_id: The job ID being saved.
bool $update_tms: (Optional) Flag indicating if the change should be communicated to the TMS. False by default.
Return value
\Drupal\Core\Entity\ContentEntityInterface Returns the entity which job ID is saved.
Throws
\Drupal\lingotek\Exception\LingotekPaymentRequiredException
\Drupal\lingotek\Exception\LingotekDocumentArchivedException
\Drupal\lingotek\Exception\LingotekDocumentLockedException
\Drupal\lingotek\Exception\LingotekApiException
1 method overrides LingotekContentTranslationServiceInterface::setJobId()
- LingotekContentTranslationService::setJobId in src/
LingotekContentTranslationService.php - Sets the job ID of a given entity.
File
- src/
LingotekContentTranslationServiceInterface.php, line 374
Class
- LingotekContentTranslationServiceInterface
- Service for managing Lingotek content translations.
Namespace
Drupal\lingotekCode
public function setJobId(ContentEntityInterface $entity, $job_id, $update_tms = FALSE);