You are here

public function LingotekConfigTranslationServiceInterface::setJobId in Lingotek Translation 3.4.x

Same name and namespace in other branches
  1. 8.2 src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setJobId()
  2. 4.0.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setJobId()
  3. 3.0.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setJobId()
  4. 3.1.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setJobId()
  5. 3.2.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setJobId()
  6. 3.3.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setJobId()
  7. 3.5.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setJobId()
  8. 3.6.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setJobId()
  9. 3.7.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setJobId()
  10. 3.8.x src/LingotekConfigTranslationServiceInterface.php \Drupal\lingotek\LingotekConfigTranslationServiceInterface::setJobId()

Sets the job ID of a given entity.

Parameters

\Drupal\Core\Config\Entity\ConfigEntityInterface $entity: The entity which we want the document id.

$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\Config\Entity\ConfigEntityInterface 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 LingotekConfigTranslationServiceInterface::setJobId()
LingotekConfigTranslationService::setJobId in src/LingotekConfigTranslationService.php
Sets the job ID of a given entity.

File

src/LingotekConfigTranslationServiceInterface.php, line 633

Class

LingotekConfigTranslationServiceInterface
Service for managing Lingotek configuration translations.

Namespace

Drupal\lingotek

Code

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