You are here

public function JobItem::getSourceType in Translation Management Tool 8

Returns the user readable type of job item.

Overrides JobItemInterface::getSourceType

File

src/Entity/JobItem.php, line 327

Class

JobItem
Entity class for the tmgmt_job_item entity.

Namespace

Drupal\tmgmt\Entity

Code

public function getSourceType() {
  if ($plugin = $this
    ->getSourcePlugin()) {
    return $plugin
      ->getType($this);
  }
  return ucfirst($this
    ->get('item_type')->value);
}