You are here

public static function AdminHelper::getDefaultLangcode in moderated content bulk publish 8

Same name and namespace in other branches
  1. 2.0.x src/AdminHelper.php \Drupal\moderated_content_bulk_publish\AdminHelper::getDefaultLangcode()
  2. 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

AdminHelper

Namespace

Drupal\moderated_content_bulk_publish

Code

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