You are here

public function LingotekInterfaceTranslationService::getJobId in Lingotek Translation 4.0.x

Same name and namespace in other branches
  1. 3.2.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getJobId()
  2. 3.3.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getJobId()
  3. 3.4.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getJobId()
  4. 3.5.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getJobId()
  5. 3.6.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getJobId()
  6. 3.7.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getJobId()
  7. 3.8.x src/LingotekInterfaceTranslationService.php \Drupal\lingotek\LingotekInterfaceTranslationService::getJobId()

Gets the job ID of a given component.

Parameters

string $component: The component we want to get the job id.

Return value

string Returns the job ID is saved.

Overrides LingotekInterfaceTranslationServiceInterface::getJobId

3 calls to LingotekInterfaceTranslationService::getJobId()
LingotekInterfaceTranslationService::setJobId in src/LingotekInterfaceTranslationService.php
Sets the job ID of a given component.
LingotekInterfaceTranslationService::updateDocument in src/LingotekInterfaceTranslationService.php
Resends a document to the translation service.
LingotekInterfaceTranslationService::uploadDocument in src/LingotekInterfaceTranslationService.php
Uploads a document to the Lingotek service.

File

src/LingotekInterfaceTranslationService.php, line 1051

Class

LingotekInterfaceTranslationService
Service for managing Lingotek interface translations.

Namespace

Drupal\lingotek

Code

public function getJobId($component) {
  $job_id = NULL;
  $metadata = $this
    ->getMetadata($component);
  if (!empty($metadata) && !empty($metadata['job_id'])) {
    $job_id = $metadata['job_id'];
  }
  return $job_id;
}