You are here

function tmgmt_translator_labels in Translation Management Tool 8

Same name and namespace in other branches
  1. 7 tmgmt.module \tmgmt_translator_labels()

Returns a list of all available translator labels.

Return value

array An array containing all available translator labels.

Related topics

1 string reference to 'tmgmt_translator_labels'
JobViewsData::getViewsData in src/Entity/ViewsData/JobViewsData.php
Returns views data for the entity type.

File

./tmgmt.module, line 497
Main module file for the Translation Management module.

Code

function tmgmt_translator_labels() {
  $labels = array();
  foreach (Translator::loadMultiple() as $translator) {
    $labels[$translator
      ->id()] = $translator
      ->label();
  }
  return $labels;
}