You are here

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

Get the langcode for the currently viewed interface for this thread.

File

src/EtufHelper.php, line 32

Class

EtufHelper
Helper class for the Etuf module.

Namespace

Drupal\entity_translation_unified_form

Code

public static function getLang() {
  return \Drupal::languageManager()
    ->getCurrentLanguage()
    ->getId();
}