You are here

public function JobItem::getJobId in Translation Management Tool 8

Returns the Job ID.

Return value

int The job ID.

Overrides JobItemInterface::getJobId

6 calls to JobItem::getJobId()
JobItem::abortTranslation in src/Entity/JobItem.php
Attempts to abort the translation job item.
JobItem::accepted in src/Entity/JobItem.php
Sets the state of the job item to 'accepted'.
JobItem::addMessage in src/Entity/JobItem.php
Add a log message for this job item.
JobItem::addRemoteMapping in src/Entity/JobItem.php
Adds remote mapping entity to this job item.
JobItem::getData in src/Entity/JobItem.php
Array of the data to be translated.

... See full list

File

src/Entity/JobItem.php, line 241

Class

JobItem
Entity class for the tmgmt_job_item entity.

Namespace

Drupal\tmgmt\Entity

Code

public function getJobId() {
  return $this
    ->get('tjid')->target_id;
}