public function TranslationManager::translateString in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/StringTranslation/TranslationManager.php \Drupal\Core\StringTranslation\TranslationManager::translateString()
Translates a TranslatableMarkup object to a string.
Parameters
\Drupal\Core\StringTranslation\TranslatableMarkup $translated_string: A TranslatableMarkup object.
Return value
string The translated string.
Overrides TranslationInterface::translateString
File
- core/
lib/ Drupal/ Core/ StringTranslation/ TranslationManager.php, line 118 - Contains \Drupal\Core\StringTranslation\TranslationManager.
Class
- TranslationManager
- Defines a chained translation implementation combining multiple translators.
Namespace
Drupal\Core\StringTranslationCode
public function translateString(TranslatableMarkup $translated_string) {
return $this
->doTranslate($translated_string
->getUntranslatedString(), $translated_string
->getOptions());
}