TranslationManager::setDefaultLangcode

public TranslationManager::setDefaultLangcode($langcode)

Sets the default langcode.

Parameters

string $langcode: A language code.

File

core/lib/Drupal/Core/StringTranslation/TranslationManager.php, line 162

Class

TranslationManager
Defines a chained translation implementation combining multiple translators.

Namespace

Drupal\Core\StringTranslation

Code

public function setDefaultLangcode($langcode) {
  $this->defaultLangcode = $langcode;
}
doc_Drupal
2016-10-29 09:49:17
Comments
Leave a Comment

Please login to continue.