protected static ConfigurableLanguage::getDefaultLangcode()
Gets the default langcode.
Return value
string The current default langcode.
File
- core/modules/language/src/Entity/ConfigurableLanguage.php, line 184
Class
- ConfigurableLanguage
- Defines the ConfigurableLanguage entity.
Namespace
Drupal\language\Entity
Code
protected static function getDefaultLangcode() { $language = \Drupal::service('language.default')->get(); return $language->getId(); }
Please login to continue.