protected CustomStrings::getLanguage($langcode)
Retrieves translations for a given language.
string $langcode: The langcode of the language.
array A multidimensional array of translations, indexed by the context the source string belongs to. The second level is using original strings as keys. An empty array will be returned when no translations are available.
Overrides StaticTranslation::getLanguage
protected function getLanguage($langcode) { return $this->settings->get('locale_custom_strings_' . $langcode, array()); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!StringTranslation!Translator!CustomStrings.php/function/CustomStrings::getLanguage/8.1.x