public function LocaleSourcePluginUi::overviewFormHeader

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_locale

Code

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;
}