public function TranslationManager::setDefaultLangcode in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 164 - Contains \Drupal\Core\StringTranslation\TranslationManager.
Class
- TranslationManager
- Defines a chained translation implementation combining multiple translators.
Namespace
Drupal\Core\StringTranslationCode
public function setDefaultLangcode($langcode) {
$this->defaultLangcode = $langcode;
}