public static function AdminHelper::getDefaultLangcode in Search and Replace Scanner 8
Get current language.
File
- src/
AdminHelper.php, line 56
Class
- AdminHelper
- Shared logic for use in the mdoule.
Namespace
Drupal\scannerCode
public static function getDefaultLangcode() {
$language = \Drupal::languageManager()
->getDefaultLanguage();
return $language
->getId();
}