public function LocaleSourcePluginUi::overviewFormHeader in Translation Management Tool 8
Gets overview form header.
Return value
array Header array definition as expected by theme_tablesort().
File
- sources/
locale/ src/ LocaleSourcePluginUi.php, line 80
Class
- LocaleSourcePluginUi
- Locale source plugin UI.
Namespace
Drupal\tmgmt_localeCode
public function overviewFormHeader() {
$languages = array();
foreach ($this
->getLanguages() as $langcode => $language) {
$languages['langcode-' . $langcode] = array(
'data' => $language
->getName(),
);
}
$header = array(
'source' => array(
'data' => t('Source text'),
),
'context' => array(
'data' => t('Context'),
),
) + $languages;
return $header;
}