public static function AdminHelper::getDefaultLangcode in moderated content bulk publish 8
Same name and namespace in other branches
- 2.0.x src/AdminHelper.php \Drupal\moderated_content_bulk_publish\AdminHelper::getDefaultLangcode()
- 1.0.x src/AdminHelper.php \Drupal\moderated_content_bulk_publish\AdminHelper::getDefaultLangcode()
Helper function get current language.
File
- src/
AdminHelper.php, line 39
Class
Namespace
Drupal\moderated_content_bulk_publishCode
public static function getDefaultLangcode() {
$language = \Drupal::languageManager()
->getDefaultLanguage();
return $language
->getId();
}