Returns a list of all available translator labels.
array An array containing all available translator labels.
function tmgmt_translator_labels() {
$labels = array();
foreach (Translator::loadMultiple() as $translator) {
$labels[$translator
->id()] = $translator
->label();
}
return $labels;
}