You are here

public function SourcePluginBase::getLabel in Translation Management Tool 8

Return a title for this job item.

Parameters

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

Overrides SourcePluginInterface::getLabel

4 methods override SourcePluginBase::getLabel()
ConfigSource::getLabel in sources/tmgmt_config/src/Plugin/tmgmt/Source/ConfigSource.php
Return a title for this job item.
ContentEntitySource::getLabel in sources/content/src/Plugin/tmgmt/Source/ContentEntitySource.php
Return a title for this job item.
LocaleSource::getLabel in sources/locale/src/Plugin/tmgmt/Source/LocaleSource.php
Return a title for this job item.
TestSource::getLabel in tmgmt_test/src/Plugin/tmgmt/Source/TestSource.php
Return a title for this job item.

File

src/SourcePluginBase.php, line 17

Class

SourcePluginBase
Default controller class for source plugins.

Namespace

Drupal\tmgmt

Code

public function getLabel(JobItemInterface $job_item) {
  return t('@plugin item unavailable (@item)', array(
    '@plugin' => $this->pluginDefinition['label'],
    '@item' => $job_item
      ->getItemType() . ':' . $job_item
      ->getItemId(),
  ));
}