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_formCode
public static function getDefaultLangcode() {
$language = \Drupal::languageManager()
->getDefaultLanguage();
return $language
->getId();
}