function CustomStrings::getLanguage
Same name in other branches
- 9 core/lib/Drupal/Core/StringTranslation/Translator/CustomStrings.php \Drupal\Core\StringTranslation\Translator\CustomStrings::getLanguage()
- 10 core/lib/Drupal/Core/StringTranslation/Translator/CustomStrings.php \Drupal\Core\StringTranslation\Translator\CustomStrings::getLanguage()
- 11.x core/lib/Drupal/Core/StringTranslation/Translator/CustomStrings.php \Drupal\Core\StringTranslation\Translator\CustomStrings::getLanguage()
Overrides StaticTranslation::getLanguage
File
-
core/
lib/ Drupal/ Core/ StringTranslation/ Translator/ CustomStrings.php, line 39
Class
- CustomStrings
- String translator using overrides from variables.
Namespace
Drupal\Core\StringTranslation\TranslatorCode
protected function getLanguage($langcode) {
return $this->settings
->get('locale_custom_strings_' . $langcode, []);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.