You are here

public function LingotekContentTranslationServiceInterface::setJobId in Lingotek Translation 4.0.x

Same name and namespace in other branches
  1. 8.2 src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setJobId()
  2. 3.0.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setJobId()
  3. 3.1.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setJobId()
  4. 3.2.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setJobId()
  5. 3.3.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setJobId()
  6. 3.4.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setJobId()
  7. 3.5.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setJobId()
  8. 3.6.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setJobId()
  9. 3.7.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::setJobId()
  10. 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\LingotekDocumentNotFoundException

\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 394

Class

LingotekContentTranslationServiceInterface
Service for managing Lingotek content translations.

Namespace

Drupal\lingotek

Code

public function setJobId(ContentEntityInterface $entity, $job_id, $update_tms = FALSE);