function TranslationManager::setDefaultLangcode
Same name in other branches
- 9 core/lib/Drupal/Core/StringTranslation/TranslationManager.php \Drupal\Core\StringTranslation\TranslationManager::setDefaultLangcode()
- 8.9.x core/lib/Drupal/Core/StringTranslation/TranslationManager.php \Drupal\Core\StringTranslation\TranslationManager::setDefaultLangcode()
- 10 core/lib/Drupal/Core/StringTranslation/TranslationManager.php \Drupal\Core\StringTranslation\TranslationManager::setDefaultLangcode()
Sets the default langcode.
Parameters
string $langcode: A language code.
File
-
core/
lib/ Drupal/ Core/ StringTranslation/ TranslationManager.php, line 157
Class
- TranslationManager
- Defines a chained translation implementation combining multiple translators.
Namespace
Drupal\Core\StringTranslationCode
public function setDefaultLangcode($langcode) {
$this->defaultLangcode = $langcode;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.