public LocaleConfigManager::getStringTranslation($name, $langcode, $source, $context)
Get the translation object for the given source/context and language.
Parameters
string $name: Name of the configuration location.
string $langcode: Language code to translate to.
string $source: The source string, should be English.
string $context: The string context.
Return value
\Drupal\locale\TranslationString|false The translation object if the string was not empty or FALSE otherwise.
File
core/modules