You are here

public function ConfigSource::getType in Translation Management Tool 8

Returns the type of a job item.

Parameters

\Drupal\tmgmt\JobItemInterface $job_item: The job item.

Return value

string A type that describes the job item.

Overrides SourcePluginBase::getType

File

sources/tmgmt_config/src/Plugin/tmgmt/Source/ConfigSource.php, line 333

Class

ConfigSource
Content entity source plugin controller.

Namespace

Drupal\tmgmt_config\Plugin\tmgmt\Source

Code

public function getType(JobItemInterface $job_item) {
  $definition = $this->configMapperManager
    ->getDefinition($this
    ->getMapperId($job_item));
  return $definition['title'];
}