You are here

public function TMGMTTestSourcePluginController::getExistingLangCodes in Translation Management Tool 7

Gets existing translation language codes of the job item source.

Returns language codes that can be used as the source language for a translation job.

Parameters

TMGMTJobItem $job_item: The job item.

Return value

array Array of language codes.

Overrides TMGMTDefaultSourcePluginController::getExistingLangCodes

File

tests/tmgmt_test.plugin.source.inc, line 96
Contains the test source plugin.

Class

TMGMTTestSourcePluginController
@file Contains the test source plugin.

Code

public function getExistingLangCodes(TMGMTJobItem $job_item) {
  return array_keys(language_list());
}