You are here

public static function EtufHelper::getDefaultLangcode in Entity Translation Unified Form 8

Helper function get current language.

File

src/EtufHelper.php, line 57

Class

EtufHelper
Helper class for the Etuf module.

Namespace

Drupal\entity_translation_unified_form

Code

public static function getDefaultLangcode() {
  $language = \Drupal::languageManager()
    ->getDefaultLanguage();
  return $language
    ->getId();
}