You are here

public function SourcePluginBase::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 SourcePluginInterface::getType

3 methods override SourcePluginBase::getType()
ConfigSource::getType in sources/tmgmt_config/src/Plugin/tmgmt/Source/ConfigSource.php
Returns the type of a job item.
ContentEntitySource::getType in sources/content/src/Plugin/tmgmt/Source/ContentEntitySource.php
Returns the type of a job item.
LocaleSource::getType in sources/locale/src/Plugin/tmgmt/Source/LocaleSource.php
[@inheritdoc}

File

src/SourcePluginBase.php, line 49

Class

SourcePluginBase
Default controller class for source plugins.

Namespace

Drupal\tmgmt

Code

public function getType(JobItemInterface $job_item) {
  return ucfirst($job_item
    ->getItemType());
}